2

Mongoid only seems to have an app wide Mongoid.allow_dynamic_fields setting. But I want every collection to decide whether it wants dynamic fields or not. How can I do that?

Coffee Bite
  • 4,956
  • 5
  • 33
  • 38

1 Answers1

0

This is not possible in mongoid 3.x yet even though there is a pull request already for it, https://github.com/mongoid/mongoid/pull/2563. This will be released on mongoid 4.0. However if you really need that feature you could checkout those 2 commits in a local folder or in a fork , an use it.

Arthur Neves
  • 11,840
  • 8
  • 60
  • 73