updated impressionist initializer

This commit is contained in:
Antonio C Nalesso Moreira 2013-07-14 23:54:42 +01:00
parent 6d68a28aa1
commit 4a009f54e9
1 changed files with 3 additions and 1 deletions

View File

@ -3,4 +3,6 @@
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid # Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
# config.orm = :active_record # config.orm = :active_record
#end #end
Impressionist.orm = :<%= options.orm if options.orm %>
<% orm = options.orm.match(/mongoid|active_record|mongomapper/) %>
<%= "Impressionist.orm = :#{options.orm}" if String === options.orm %>