2012-03-12 22:06:16 +00:00
|
|
|
# Use this hook to configure impressionist parameters
|
2013-07-14 22:36:06 +00:00
|
|
|
#Impressionist.setup do |config|
|
2012-07-11 01:42:43 +00:00
|
|
|
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
|
2012-03-12 22:06:16 +00:00
|
|
|
# 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 %>
|