I am loading some data with
data = Product.find_by_sql(sql)
so it is returning array. But, i further want to chain some model methods like order
, where
. I guess this is only possible if i change/convert this array into ActiveRecord::Associations::CollectionProxy
object.
How can i ?