Module: MongoMapper::Plugins::Protected::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/protected.rb
Instance Method Summary collapse
Instance Method Details
#attr_protected(*attrs) ⇒ Object
5 6 7 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 5 def attr_protected( *attrs ) self.write_inheritable_attribute( :attr_protected, Set.new(attrs) + (protected_attributes || []) ) end |
#protected_attributes ⇒ Object
8 9 10 |
# File 'lib/mongo_mapper/plugins/protected.rb', line 8 def protected_attributes self.read_inheritable_attribute( :attr_protected ) end |