Class: ProductType
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ProductType
- Includes:
- Forgeos::Urlified
- Defined in:
- app/models/product_type.rb
Class Method Summary collapse
Class Method Details
.modify_import_attributes(attributes) ⇒ Object
23 24 25 26 |
# File 'app/models/product_type.rb', line 23 def self.modify_import_attributes(attributes) attributes[:url] = attributes[:name].parameterize if attributes[:url].blank? and attributes[:name].present? attributes end |