Now that ActiveRecord::Relation#all is deprecated in Rails 4, how are you supposed to iterate all records?
Used to be like:
Foo.all.each do |foo| # w
yes, Foo.all.
Foo.all
all is deprecated on an ActiveRecord::Relation (eg. Foo.where(true)), not on ActiveRecord::Base.
all
Foo.where(true)
http://api.rubyonrails.org/classes/ActiveRecord/Scoping/Named/ClassMethods.html#method-i-all