method
guard_against_unlimitable_reflections
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::Associations::ClassMethods
guard_against_unlimitable_reflections(reflections, options)private
No documentation available.
# File activerecord/lib/active_record/associations.rb, line 1613
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