mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Fixed the brokeness from 952ec79bec
This commit is contained in:
@@ -16,7 +16,7 @@ module ActiveSupport #:nodoc:
|
||||
def slice(*keys)
|
||||
allowed = Set.new(respond_to?(:convert_key) ? keys.map { |key| convert_key(key) } : keys)
|
||||
hash = {}
|
||||
allowed.each { |k| hash[k] = self[k] }
|
||||
allowed.each { |k| hash[k] = self[k] if has_key?(k) }
|
||||
hash
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user