Sha256: c14086ce88105a53b5866403159d45e5ddfc6f48c892cfac7c5461b1f11dee73
Contents?: true
Size: 271 Bytes
Versions: 3
Compression:
Stored size: 271 Bytes
Contents
module Paginate module Extension extend ActiveSupport::Concern included do scope :paginate, proc {|*args| Paginate::Base.new( ActiveRecord::VERSION::MAJOR < 4 ? scoped : all, *args ).to_scope } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paginate-4.0.1 | lib/paginate/extension.rb |
paginate-4.0.0 | lib/paginate/extension.rb |
paginate-3.0.0 | lib/paginate/extension.rb |