class Parelation::Criteria::Limit
Constants
- LIMIT_FORMAT
@return [Regexp] the limit format.
Public Class Methods
match?(param)
click to toggle source
@param param [String] @return [TrueClass, FalseClass]
# File lib/parelation/criteria/limit.rb, line 10 def self.match?(param) !!param.match(LIMIT_FORMAT) end
Public Instance Methods
call()
click to toggle source
@return [ActiveRecord::Relation]
# File lib/parelation/criteria/limit.rb, line 16 def call chain.limit(value) end