Permalink
Browse files

`Object#returning` is deprecated on Rails 2.3 in favor of `Object#tap`

  • Loading branch information...
1 parent 73d4405 commit 698d803ae95b8c53ce0fa637fdb4e3dc229e9d9a @spastorino spastorino committed with Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/will_paginate.rb
View
@@ -36,7 +36,7 @@ def enable_activerecord
# support pagination on associations
a = ActiveRecord::Associations
- returning([ a::AssociationCollection ]) { |classes|
+ [ a::AssociationCollection ].tap { |classes|
# detect http://dev.rubyonrails.org/changeset/9230
unless a::HasManyThroughAssociation.superclass == a::HasManyAssociation
classes << a::HasManyThroughAssociation

0 comments on commit 698d803

Please sign in to comment.