method
limit!
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::QueryMethods
limit!(value)public
No documentation available.
# File activerecord/lib/active_record/relation/query_methods.rb, line 709
def limit!(value) # :nodoc:
if string_containing_comma?(value)
# Remove `string_containing_comma?` when removing this deprecation
ActiveSupport::Deprecation.warn( Passing a string to limit in the form "1,2" is deprecated and will be removed in Rails 5.1. Please call `offset` explicitly instead..squish)
end
self.limit_value = value
self
end