Module: CouchRest::Mixins::AttributeProtection::ClassMethods
- Defined in:
- lib/couchrest/mixins/attribute_protection.rb
Instance Method Summary collapse
Instance Method Details
#accessible_properties ⇒ Object
28 29 30 |
# File 'lib/couchrest/mixins/attribute_protection.rb', line 28 def accessible_properties properties.select { |prop| prop.[:accessible] } end |
#protected_properties ⇒ Object
32 33 34 |
# File 'lib/couchrest/mixins/attribute_protection.rb', line 32 def protected_properties properties.select { |prop| prop.[:protected] } end |