Module: CouchRest::Mixins::AttributeProtection::ClassMethods

Defined in:
lib/couchrest/mixins/attribute_protection.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) accessible_properties



28
29
30
# File 'lib/couchrest/mixins/attribute_protection.rb', line 28

def accessible_properties
  properties.select { |prop| prop.options[:accessible] }
end

- (Object) protected_properties



32
33
34
# File 'lib/couchrest/mixins/attribute_protection.rb', line 32

def protected_properties
  properties.select { |prop| prop.options[:protected] }
end