Reputation: 5200
In Mongoid embedded documents accepts nested attributes
is on by default. How can one disable it?
Upvotes: 0
Views: 204
Reputation: 30176
You can either use attr_protected
to restrict given attributes from being mass assignable or use the inverse attr_accessible
to allow only the given attributes to be mass assignable.
Upvotes: 0