Module: LHS::Record::Pagination

Extended by:
ActiveSupport::Concern
Defined in:
lib/lhs/concerns/record/pagination.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#_paginationObject



14
15
16
# File 'lib/lhs/concerns/record/pagination.rb', line 14

def _pagination
  self.class.pagination(_data)
end

#paginated?(raw = nil) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lhs/concerns/record/pagination.rb', line 10

def paginated?(raw = nil)
  self.class.paginated?(raw || _raw)
end