Module: Schema::Attributes
- Defined in:
- lib/schema/schema.rb
Instance Method Summary collapse
Instance Method Details
#attribute_names ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/schema/schema.rb', line 81 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
77 78 79 |
# File 'lib/schema/schema.rb', line 77 def attributes @attributes ||= AttributeRegistry.new end |