Sha256: bdced1339d70fd044b5cf73b490585e99344d0195230e9862b174c5b9107a42d

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

module RailsPagination
  module ActionView
    module Base

      def paginate(*args)
        Pagination.new *args.unshift(request)
      end

      def pager(*args)
        render partial: 'rails_pagination/pager', locals: { pagination: paginate(*args) }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_pagination-2.0.10 lib/rails_pagination/action_view/base.rb
rails_pagination-2.0.9 lib/rails_pagination/action_view/base.rb
rails_pagination-2.0.8 lib/rails_pagination/action_view/base.rb
rails_pagination-2.0.7 lib/rails_pagination/action_view/base.rb