Skip to content
This repository
Browse code

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

…rret stable (ugh)
  • Loading branch information...
commit 5ec1acac44a49e783cf69e41ae5404204131f173 1 parent e9814ca
Mislav Marohnić authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/will_paginate/view_helpers.rb
2  lib/will_paginate/view_helpers.rb
@@ -140,7 +140,7 @@ def page_entries_info(collection)
140 140
     end
141 141
 
142 142
     def self.total_pages_for_collection(collection) #:nodoc:
143  
-      if collection.respond_to? :page_count and !collection.respond_to? :total_pages
  143
+      if collection.respond_to?('page_count') and !collection.respond_to?('total_pages')
144 144
         WillPaginate::Deprecation.warn <<-MSG
145 145
           You are using a paginated collection of class #{collection.class.name}
146 146
           which conforms to the old API of WillPaginate::Collection by using

0 notes on commit 5ec1aca

Please sign in to comment.
Something went wrong with that request. Please try again.