No need to call convert_key before except.
This commit is contained in:
parent
50ec0d9b2e
commit
1eecd9483b
|
@ -17,7 +17,6 @@ class Hash
|
|||
|
||||
# Replaces the hash without the given keys.
|
||||
def except!(*keys)
|
||||
keys.map! { |key| convert_key(key) } if respond_to?(:convert_key)
|
||||
keys.each { |key| delete(key) }
|
||||
self
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue