Skip to content

Commit

Permalink
Define some Mongoid option mandatory by define if there are ENV
Browse files Browse the repository at this point in the history
configuration or not

Revert in commit [f021f13]
  • Loading branch information
shingara committed Aug 29, 2013
1 parent 5364d94 commit 74b76ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
hosts: [ "#{settings.host}:#{settings.port}" ]
}
},
options: { allow_dynamic_fields: false, use_activesupport_time_zone: true, identity_map_enabled: true }
}

if settings.user && settings.password
Expand All @@ -39,3 +38,7 @@
config.load_configuration(hash)
end
end

Mongoid.allow_dynamic_fields = false
Mongoid.use_activesupport_time_zone = true
Mongoid.identity_map_enabled = true

0 comments on commit 74b76ef

Please sign in to comment.