Class: MetaFieldApi::Metafield

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/meta_field_api/metafield.rb

Instance Method Summary collapse

Instance Method Details

#my_typeObject

Alias for type column to avoid conflict with Rails’ inheritance column



20
21
22
# File 'app/models/meta_field_api/metafield.rb', line 20

def my_type
  read_attribute(:type)
end

#my_type=(value) ⇒ Object



24
25
26
# File 'app/models/meta_field_api/metafield.rb', line 24

def my_type=(value)
  write_attribute(:type, value)
end