Commit ab2d95ff4e0ea9a832bce7ad3c322eeb0c30b640

Authored by Braulio Bhavamitra
1 parent 190f639e

rails4: simbolize keys on full hash assign

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
lib/acts_as_having_settings.rb
@@ -13,7 +13,9 @@ module ActiveRecord @@ -13,7 +13,9 @@ module ActiveRecord
13 end 13 end
14 class Hash < Value 14 class Hash < Value
15 def cast_value value 15 def cast_value value
16 - ::Hash[value] 16 + h = ::Hash[value]
  17 + h.symbolize_keys!
  18 + h
17 end 19 end
18 end 20 end
19 end 21 end