Permalink
Browse files

1.8.6 support

  • Loading branch information...
1 parent 004a508 commit d9ec6271080c96e5805d250c50e981f65327e30b @kastner committed Jan 10, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/boom.rb
View
@@ -23,3 +23,11 @@ def self.storage
@storage ||= Boom::Storage.new
end
end
+
+unless Symbol.method_defined?(:to_proc)
+ class Symbol
+ def to_proc
+ Proc.new { |obj, *args| obj.send(self, *args) }
+ end
+ end
+end

0 comments on commit d9ec627

Please sign in to comment.