Module: Schema::Attributes
- Defined in:
- lib/schema/schema.rb
Instance Method Summary collapse
Instance Method Details
#attribute_names ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/schema/schema.rb', line 52 def attribute_names transient_attributes = [] if respond_to?(:transient_attributes) transient_attributes = self.transient_attributes end attribute_names = [] attributes.each do |attribute| next if transient_attributes.include?(attribute.name) attribute_names << attribute.name end attribute_names end |
#attributes ⇒ Object
48 49 50 |
# File 'lib/schema/schema.rb', line 48 def attributes @attributes ||= AttributeRegistry.new end |