Sha256: 4f3c1cdfb9de782a10c9d0d7eb46ab372d17cece816b5b2cef3361bd8309526e

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

module Paginary
  module Relation
    module QueryMethods
      def paginate(*args)
        clone.extending(Paginated).tap do |relation|
          relation.paginate!(*args)
        end
      end

      def paginated?
        false
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paginary-0.0.1.pre2 lib/paginary/relation/query_methods.rb
paginary-0.0.1.pre1 lib/paginary/relation/query_methods.rb