Skip to content

Commit

Permalink
Fixed the brokeness from 952ec79
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jun 3, 2008
1 parent 4b4aa8f commit 29641ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/hash/slice.rb
Expand Up @@ -16,7 +16,7 @@ module Slice
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

Expand Down

0 comments on commit 29641ff

Please sign in to comment.