Updating Activerecord queries to rails 3.2 format : find(:all) to all -
i updating active record queries of rails project. have not been able find out how update when query is
foo.find(:all, :stuff, :id, :thing, @bar)
i know how handle regular.find(:all)
or .find(:all, :conditions => {}
(find(:first) , find(:all) deprecated) have not found on
if, example, model user, find users use:
user.all
and specific conditions, use:
user.where(neck: "long")
Comments
Post a Comment