Non capisco perchè l'ordinamento dei nodi figli, che ho correttamente specificato dev'essere calcolato su un campo, non viene preso in considerazione.
Nel mio modello ho:
class NestedSurveyElement < ActiveRecord::Base
acts_as_nested_set :order => 'orderby ASC', :dependent => :delete_all, :scope => :survey_id
#........
end
Per ovviare temporanemente al problema, riordino l'array restituito dal metodo children() di acts_as_nested_set in questo modo:
children = root_element.children.sort_by{|c| c.order_field}
Purtroppo in questo modo aggiungo tempo di calcolo non necessario (anche se un ordinamento nel mio caso è piuttosto trascurabile ) al mio processo... ma per ora funziona...
German talking sellers will greet gamers for a complete, localised Roulette experience, all built around the tradition of Germany. The sellers speak 스포츠토토 Italian and gamers might be immersed in a Roulette environment inspired by the tradition of the nation it represents. The objective is to guess on which facet Andar or Bahar the cardboard matching the Joker card on the table will seem first. Even that is the case|if so|if that is so}, Super Slots ought to still run easily if you use a mobile device, however not many free games can be found on mobile. Aside from welcome bonuses, could also|you can even} take pleasure in weekly and month-to-month reload bonuses, referral bonuses, and even a weekly boost on your cryptocurrency deposit.
RispondiElimina