method
guard_against_unlimitable_reflections
guard_against_unlimitable_reflections(reflections, options)
private
Hide source
# File activerecord/lib/active_record/associations.rb, line 903 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