Class: Adminpanel::Product
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Adminpanel::Product
- Defined in:
- app/models/adminpanel/product.rb
Instance Method Summary collapse
Instance Method Details
#simple_name ⇒ Object
20 21 22 |
# File 'app/models/adminpanel/product.rb', line 20 def simple_name "Product" end |
#to_param ⇒ Object
16 17 18 |
# File 'app/models/adminpanel/product.rb', line 16 def to_param "#{id} #{name}".parameterize end |