Sha256: d8f83c19fcb63ddd1d3427b2287df2f47cf2aef6fad5ec4c159493866069b295
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
Contents
require 'kaminari/rectify/query/version' require 'forwardable' require 'active_support/concern' module Kaminari module Rectify module Query KAMINARI_ACTIVERECORD_RELATION_METHODS = %i( entry_name reset total_count without_count load last_page? out_of_range? total_count limit_value ).freeze KAMINARI_PAGE_SCOPE_METHODS = %i( per max_paginates_per padding total_pages current_page current_per_page next_page prev_page first_page? last_page? out_of_range? ).freeze extend ActiveSupport::Concern included do extend Forwardable delegate KAMINARI_ACTIVERECORD_RELATION_METHODS => 'cached_query' delegate KAMINARI_PAGE_SCOPE_METHODS => 'cached_query' delegate Kaminari.config.page_method_name => 'cached_query' end end end end Rectify::Query.include Kaminari::Rectify::Query
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaminari-rectify-query-0.1.0 | lib/kaminari/rectify/query.rb |