updated impressionist initializer
This commit is contained in:
1 parent
6d68a28aa1
commit
4a009f54e9
1 file changed
+3
-1
@@ -3,4 +3,6 @@
|
||||
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
|
||||
# config.orm = :active_record
|
||||
#end
|
||||
Impressionist.orm = :<%= options.orm if options.orm %>
|
||||
|
||||
<% orm = options.orm.match(/mongoid|active_record|mongomapper/) %>
|
||||
<%= "Impressionist.orm = :#{options.orm}" if String === options.orm %>
|
||||
Reference in new issue
Block a user