Sha256: b70df1c6e62d2ee6eb5cd19928d7615f836c00f0ff4cd1fb1ffd64fa8ee7f421

Contents?: true

Size: 380 Bytes

Versions: 6

Compression:

Stored size: 380 Bytes

Contents

# Author::    A.K.M. Ashrafuzzaman  (mailto:ashrafuzzaman.g2@gmail.com)
# License::   MIT-LICENSE

# The purpose of the paginate module is to offer support for pagination

module QueryReport
  module PaginateModule
    def apply_pagination(query, params)
      page_method_name = Kaminari.config.page_method_name
      query.send(page_method_name, params[:page])
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
query_report-1.0.5 lib/query_report/paginate.rb
query_report-1.0.4 lib/query_report/paginate.rb
query_report-1.0.3 lib/query_report/paginate.rb
query_report-1.0.2 lib/query_report/paginate.rb
query_report-1.0.1 lib/query_report/paginate.rb
query_report-1.0.0 lib/query_report/paginate.rb