Skip to content

Commit

Permalink
Object#returning is deprecated on Rails 2.3 in favor of Object#tap
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and mislav committed Jul 29, 2010
1 parent 73d4405 commit 698d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/will_paginate.rb
Expand Up @@ -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
Expand Down

0 comments on commit 698d803

Please sign in to comment.