Module: ActiveRecordQuery::Limitable

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_record_query/concerns/limitable.rb

Instance Method Summary collapse

Instance Method Details

#build_limit(scope) ⇒ Object



17
18
19
# File 'lib/active_record_query/concerns/limitable.rb', line 17

def build_limit(scope)
  respond_to?(:limit) ? scope.limit(limit) : scope
end