lib/will_paginate/finder.rb in will_paginate-2.3.15 vs lib/will_paginate/finder.rb in will_paginate-2.3.16

- old
+ new

@@ -1,19 +1,19 @@ require 'will_paginate/core_ext' +require 'will_paginate/per_page' module WillPaginate # A mixin for ActiveRecord::Base. Provides +per_page+ class method # and hooks things up to provide paginating finders. # # Find out more in WillPaginate::Finder::ClassMethods # module Finder def self.included(base) + base.extend PerPage base.extend ClassMethods class << base alias_method_chain :method_missing, :paginate - # alias_method_chain :find_every, :paginate - define_method(:per_page) { 30 } unless respond_to?(:per_page) end end # = Paginating finders for ActiveRecord models #