Sha256: 8048aafb154fff9fbb24643316cd6bbba478c4dece8bebef778c23a9387bc28e

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

module Upmin::Railties
  module Paginator

    def up_paginate(scope, options = {}, &block)
      if defined?(WillPaginate)
        return will_paginate(scope, options)
      else # Use Kaminari
        return paginate(scope, options, &block)
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
upmin-admin-0.1.0 lib/upmin/railties/paginator.rb
upmin-admin-0.0.39 lib/upmin/railties/paginator.rb
upmin-admin-0.0.38 lib/upmin/railties/paginator.rb