Module: Sortables::Sortable::ClassMethods

Defined in:
lib/sortables/sortable.rb

Instance Method Summary collapse

Instance Method Details

#minimum_positionObject



11
12
13
# File 'lib/sortables/sortable.rb', line 11

def minimum_position
  (maximum(:position) || -1) + 1
end