Class: MetaFieldApi::Metafield
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- MetaFieldApi::Metafield
- Defined in:
- app/models/meta_field_api/metafield.rb
Instance Method Summary collapse
-
#my_type ⇒ Object
Alias for type column to avoid conflict with Rails’ inheritance column.
- #my_type=(value) ⇒ Object
Instance Method Details
#my_type ⇒ Object
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 |