I have a query like this
order_id = 4
Order.find(order_id, :select => 'orders.root_id, orders.lft, orders.rgt').attributes
which returns something like
{"lft" => 1, "rgt" => 10, "root_id" => 9}
and need an array in this order: root_id, lft, rgt. Any tips anyone?
that way?