Permalink
Browse files

Don't define Symbol#to_proc if it exists

  • Loading branch information...
1 parent ce624b5 commit 482ddec652b25efad5ce7928ce3b0bd7155d5daf @jeremy jeremy committed Mar 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
@@ -105,5 +105,5 @@ def to_proc
lambda do |x|
x.send(self)
end
- end
+ end unless method_defined?(:to_proc)
end

0 comments on commit 482ddec

Please sign in to comment.