instance method
guard_against_unlimitable_reflections
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
guard_against_unlimitable_reflections(reflections, options)
No documentation comment.
Parameters
-
reflectionsreq -
optionsreq
Source
# File activerecord/lib/active_record/associations.rb, line 1634
def guard_against_unlimitable_reflections(reflections, options)
if (options[:offset] || options[:limit]) && !using_limitable_reflections?(reflections)
raise(
ConfigurationError,
"You can not use offset and limit together with has_many or has_and_belongs_to_many associations"
)
end
end
Defined in activerecord/lib/active_record/associations.rb line 1634
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::ClassMethods