Module: ActiveRecordCursorPaginate

Defined in:
lib/activerecord_cursor_paginate.rb,
lib/activerecord_cursor_paginate/page.rb,
lib/activerecord_cursor_paginate/config.rb,
lib/activerecord_cursor_paginate/cursor.rb,
lib/activerecord_cursor_paginate/version.rb,
lib/activerecord_cursor_paginate/extension.rb,
lib/activerecord_cursor_paginate/paginator.rb

Defined Under Namespace

Modules: Extension Classes: Config, Cursor, Error, InvalidCursorError, Page, Paginator

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configObject



24
25
26
# File 'lib/activerecord_cursor_paginate.rb', line 24

def config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/activerecord_cursor_paginate.rb', line 20

def configure
  yield config
end