Class: LesliSupport::Catalog

Inherits:
ApplicationRecord show all
Defined in:
app/models/lesli_support/catalog.rb

Instance Method Summary collapse

Instance Method Details

#catalog_option_orderObject



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