Permalink
Browse files

use strings in "respond_to?" calls to work around a bug in acts_as_fe…

…rret stable (ugh)
  • Loading branch information...
1 parent e9814ca commit 5ec1acac44a49e783cf69e41ae5404204131f173 @mislav committed Apr 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/will_paginate/view_helpers.rb
@@ -140,7 +140,7 @@ def page_entries_info(collection)
end
def self.total_pages_for_collection(collection) #:nodoc:
- if collection.respond_to? :page_count and !collection.respond_to? :total_pages
+ if collection.respond_to?('page_count') and !collection.respond_to?('total_pages')
WillPaginate::Deprecation.warn <<-MSG
You are using a paginated collection of class #{collection.class.name}
which conforms to the old API of WillPaginate::Collection by using

0 comments on commit 5ec1aca

Please sign in to comment.