instance method
all
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
all(*args)
A convenience wrapper for find(:all, *args). You can pass in all the same arguments to this method as you can to find(:all).
Parameters
-
argsrest
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 158
def all(*args)
args.any? ? apply_finder_options(args.first).to_a : to_a
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 158
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods