public
Rubygem
Fork of mislav/will_paginate
Description: Most awesome pagination solution for Rails
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/chriseppstein/will_paginate.git
Search Repo:
use strings in "respond_to?" calls to work around a bug in 
acts_as_ferret stable (ugh)
mislav (author)
Mon Apr 07 15:08:19 -0700 2008
commit  5ec1acac44a49e783cf69e41ae5404204131f173
tree    d11cb08c79951f1136bf50e7c2b5439e388ee84b
parent  e9814cae7ee0e8f8aa2d80e0a95c7063034ca619
...
140
141
142
143
 
144
145
146
...
140
141
142
 
143
144
145
146
0
@@ -140,7 +140,7 @@ module WillPaginate
0
     end
0
 
0
     def self.total_pages_for_collection(collection) #:nodoc:
0
- if collection.respond_to? :page_count and !collection.respond_to? :total_pages
0
+ if collection.respond_to?('page_count') and !collection.respond_to?('total_pages')
0
         WillPaginate::Deprecation.warn <<-MSG
0
           You are using a paginated collection of class #{collection.class.name}
0
           which conforms to the old API of WillPaginate::Collection by using

Comments

    No one has commented yet.