Module: ApiOnlyPagination
- Defined in:
- lib/api_only_pagination/paginated_data.rb,
lib/api_only_pagination.rb,
lib/api_only_pagination/version.rb,
lib/api_only_pagination/paginate.rb,
lib/api_only_pagination/pagination.rb,
lib/api_only_pagination/configuration.rb,
lib/api_only_pagination/active_record_paginate.rb
Overview
Defined Under Namespace
Modules: ActiveRecordPaginate
Classes: Configuration, Paginate, PaginatedData, Pagination
Constant Summary
collapse
- VERSION =
"0.1.4"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
13
14
15
|
# File 'lib/api_only_pagination.rb', line 13
def configuration
@configuration ||= Configuration.new
end
|
17
18
19
|
# File 'lib/api_only_pagination.rb', line 17
def configure
yield(configuration)
end
|
.reset ⇒ Object
21
22
23
|
# File 'lib/api_only_pagination.rb', line 21
def reset
@configuration = Configuration.new
end
|