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

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

Instance Method Summary collapse

Instance Method Details

#accessible_propertiesObject



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

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

#protected_propertiesObject



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

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