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



16
17
18
# File 'lib/lhs/concerns/record/pagination.rb', line 16

def _pagination
  self.class.pagination(_data)
end

#paginated?(raw = nil) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/lhs/concerns/record/pagination.rb', line 12

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