Closed seamusabshere closed 12 years ago
hashes are used with both symbol and string keys, made possible by ActiveSupport's HashWithIndifferentAccess.
unfortunately this results in subtle gotchas like
>> hsh = HashWithIndifferentAccess.new({ :a => 1}) => {"a"=>1} >> hsh.has_key?(:a) => true >> hsh.keys.include?(:a) => false
not an issue any more - rows always have string keys (has been this way for years)
hashes are used with both symbol and string keys, made possible by ActiveSupport's HashWithIndifferentAccess.
unfortunately this results in subtle gotchas like