method
find_every
v1.2.6 -
Show latest stable
- Class:
ActiveRecord::Base
find_every(options)private
No documentation available.
# File activerecord/lib/active_record/base.rb, line 994
def find_every(options)
records = scoped?(:find, :include) || options[:include] ?
find_with_associations(options) :
find_by_sql(construct_finder_sql(options))
records.each { |record| record.readonly! } if options[:readonly]
records
end