-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
When the word scopes is used as an attribute on a model class, it is overriden by the class method scopes.
Code sample:
Class Video include Mongoid::Document field :scopes, type: String end v = Video.new(scopes: 'kids') v.scopes returns nil instead of 'kids'