Class: LesliSupport::Catalog
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- LesliSupport::Catalog
- Defined in:
- app/models/lesli_support/catalog.rb
Instance Method Summary collapse
Instance Method Details
#catalog_option_order ⇒ Object
8 9 10 11 12 13 |
# File 'app/models/lesli_support/catalog.rb', line 8 def catalog_option_order return if self.parent_id.nil? return unless self.order.nil? self.order = self.id self.save! end |