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