Module: Schema::Attributes
- Defined in:
- lib/schema/schema.rb
Instance Method Summary collapse
Instance Method Details
#attribute_names ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/schema/schema.rb', line 70 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
66 67 68 |
# File 'lib/schema/schema.rb', line 66 def attributes @attributes ||= AttributeRegistry.new end |