Class: MechanizeStore::ProductSection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MechanizeStore::ProductSection
- Defined in:
- app/models/mechanize_store/product_section.rb
Instance Method Summary collapse
Instance Method Details
#create_slug ⇒ Object
14 15 16 |
# File 'app/models/mechanize_store/product_section.rb', line 14 def create_slug self.update_attributes(:slug => self.name.parameterize) end |
#set_defaults ⇒ Object
10 11 12 |
# File 'app/models/mechanize_store/product_section.rb', line 10 def set_defaults self.slug = self.name.parameterize end |