Commit 06fd017e58ac0d25bcc3900e03148d22b1b42987
1 parent
08a1ac92
Exists in
master
and in
1 other branch
Disable dynamic fields.
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
config/initializers/mongo.rb
... | ... | @@ -5,5 +5,6 @@ if mongo = ENV['MONGOHQ_URL'] || ENV['MONGOLAB_URI'] |
5 | 5 | Mongoid.configure do |config| |
6 | 6 | config.master = Mongo::Connection.new(settings.host, settings.port).db(database_name) |
7 | 7 | config.master.authenticate(settings.user, settings.password) if settings.user |
8 | + config.allow_dynamic_fields = false | |
8 | 9 | end |
9 | 10 | end | ... | ... |