Skip to content
Browse files

translate value for 'has_key?' to Hash

  • Loading branch information...
1 parent ebd2137 commit dde785603fa7c91ce23df097b8e5ad0a30fd54a5 @reset committed Sep 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/thor/core_ext/hash_with_indifferent_access.rb
View
4 lib/thor/core_ext/hash_with_indifferent_access.rb
@@ -45,6 +45,10 @@ def merge!(other)
self
end
+ def has_key?(key)
+ super(convert_key(key))
+ end
+
protected
def convert_key(key)

0 comments on commit dde7856

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