Module: MongoMapper::Plugins::Accessible::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/accessible.rb
Instance Method Summary collapse
Instance Method Details
#attr_accessible(*attrs) ⇒ Object
11 12 13 14 |
# File 'lib/mongo_mapper/plugins/accessible.rb', line 11 def attr_accessible(*attrs) raise AccessibleOrProtected.new(name) if try(:protected_attributes?) self.accessible_attributes = Set.new(attrs) + (accessible_attributes || []) end |