Whenever I run a where clause the query is not executed until I try to access the actual data from the results. Is there anyway I can make it automatically execute.
Example:
delete_list = Rom::Leaderboard.where("pvp_type = ? AND server_id = ?", pvptype, server_id)
delete_list now holds an ActiveRecord object. But I want it to hold the resulting array without having to run something like
delete_list.each ...