Permalink
Browse files

use object introspection rather than version checks to see when the #…

…concat deprecation occured in ActionView
  • Loading branch information...
1 parent c5d532f commit 0a77c12c7768dd3f0eab961adebb0f74bd682ccb @mislav mislav committed Dec 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/will_paginate/view_helpers/action_view.rb
@@ -48,7 +48,7 @@ def page_entries_info(collection = nil, options = {})
def paginated_section(*args, &block)
pagination = will_paginate(*args).to_s
- if ::ActionPack::VERSION::STRING.to_f >= 2.2
+ unless ::ActionView::Base.respond_to? :erb_variable
concat pagination
yield
concat pagination

0 comments on commit 0a77c12

Please sign in to comment.