impressionist/lib/generators/templates/impression.rb.erb

9 lines
341 B
Plaintext
Raw Normal View History

# Use this hook to configure impressionist parameters
2013-07-14 22:36:06 +00:00
#Impressionist.setup do |config|
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
# config.orm = :active_record
2013-07-14 22:36:06 +00:00
#end
2013-07-14 22:54:42 +00:00
<% orm = options.orm.match(/mongoid|active_record|mongomapper/) %>
<%= "Impressionist.orm = :#{options.orm}" if String === options.orm %>