Permalink
Browse files

Oops, add the missing #tap call

  • Loading branch information...
1 parent 3b8853e commit 0dea509817a17fd4b64196cb83acbcef4818cb54 @lifo lifo committed Dec 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
@@ -129,7 +129,7 @@ def joins(join, join_type = nil)
@relation.join(join, join_type)
end
- spawn(join_relation) { |r| r.readonly = true }
+ spawn(join_relation).tap { |r| r.readonly = true }
end
def where(*args)

0 comments on commit 0dea509

Please sign in to comment.