Class: PiggybakTaxonomy::SellableTaxonomy
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PiggybakTaxonomy::SellableTaxonomy
- Defined in:
- app/models/piggybak_taxonomy/sellable_taxonomy.rb
Instance Method Summary collapse
Instance Method Details
#admin_label ⇒ Object
9 10 11 |
# File 'app/models/piggybak_taxonomy/sellable_taxonomy.rb', line 9 def admin_label self.sellable ? "#{self.sellable.description.gsub('"', '"')} (#{self.sort})" : "New" end |