Skip to content

Commit

Permalink
use strings in "respond_to?" calls to work around a bug in acts_as_fe…
Browse files Browse the repository at this point in the history
…rret stable (ugh)
  • Loading branch information
mislav committed Apr 7, 2008
1 parent e9814ca commit 5ec1aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/will_paginate/view_helpers.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5ec1aca

Please sign in to comment.