Now that ActiveRecord::Relation#all
is deprecated in Rails 4, how do I iterate over all records?
Previously:
Foo.all.each do |foo|
# whatever
end
I can approximate it now like this, but it feels dirty:
Foo.where(true).each do |foo|
# whatever
end
Is there a better way?