Class: ActiveFedora::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/wings/setup.rb

Class Method Summary collapse

Class Method Details

.supports_property?(property) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
30
31
32
# File 'lib/wings/setup.rb', line 27

def self.supports_property?(property)
  property == :permissions ||
    property.to_s.end_with?('_attributes') ||
    properties.key?(property.to_s) ||
    reflections.key?(property.to_sym)
end