updated impressionist initializer
This commit is contained in:
parent
6d68a28aa1
commit
4a009f54e9
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in New Issue