Class: Shoppy::OptionsGroup
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shoppy::OptionsGroup
- Defined in:
- app/models/shoppy/options_group.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#items_string ⇒ Object
temp.
Instance Method Summary collapse
-
#name ⇒ Object
Validators.
-
#options_items ⇒ Object
Relationships.
- #optionsItems ⇒ Object
- #optionsItems=(options_items) ⇒ Object
Instance Attribute Details
#items_string ⇒ Object
temp. Attrinbutes
22 23 24 |
# File 'app/models/shoppy/options_group.rb', line 22 def items_string @items_string end |
Instance Method Details
#name ⇒ Object
Validators
9 |
# File 'app/models/shoppy/options_group.rb', line 9 validates :name, presence: true |
#options_items ⇒ Object
Relationships
4 |
# File 'app/models/shoppy/options_group.rb', line 4 has_many :options_items, dependent: :destroy |
#optionsItems ⇒ Object
25 26 27 |
# File 'app/models/shoppy/options_group.rb', line 25 def return OptionsHelper::items_to_string(self) end |
#optionsItems=(options_items) ⇒ Object
29 30 31 |
# File 'app/models/shoppy/options_group.rb', line 29 def () @items_string = end |