System
[2017-11-13 18:34:46] INFO WEBrick 1.3.1
[2017-11-13 18:34:46] INFO ruby 1.9.3 (2012-02-16) [x86_64-linux]
Model in Ror, that working (currenct version)
class Expenditure < ActiveRecord::Base
...
class << self
def arrange
super(:order => :name)
end
...
I tried to add one more field for change order way. "sort_order".
I cannot find method arrange in ActiveRecord, which was redifyned
I have tried unsuccesfully
super(:order => :sort_order, :name)
...
super.order(:sort_order, :name)
... ORDER BY (case when expenditures.ancestry is null then 0 else 1 end), expenditures.ancestry, name, that is why I have to stay use superarrangemethod from