Skip to content
Browse files

switched to Object#tap

  • Loading branch information...
1 parent 0aa86fe commit dddc3d41181bc23906bced07dfe6726877ff5c05 @JakubOboza JakubOboza committed May 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sluggable_finder.rb
View
2 lib/sluggable_finder.rb
@@ -19,7 +19,7 @@ def enable_activerecord
ActiveRecord::Base.extend SluggableFinder::Orm::ClassMethods
# support for associations
a = ActiveRecord::Associations
- returning([ a::AssociationCollection ]) { |classes|
+ tap([ a::AssociationCollection ]) { |classes|
# detect http://dev.rubyonrails.org/changeset/9230
unless a::HasManyThroughAssociation.superclass == a::HasManyAssociation
classes << a::HasManyThroughAssociation

0 comments on commit dddc3d4

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