3 ms·
To expand on your expansion: when a hash with indifferent access is asserted over a list of symbols (as is the keys) it will always fail. 1.9.3p327 :025 >
by xentronium 14y ago
To expand on your expansion: when a hash with indifferent access is asserted over a list of symbols (as is the keys) it will always fail.
1.9.3p327 :025 > {:a => "b"}.with_indifferent_access.assert_valid_keys([:a])
ArgumentError: Unknown key: a