Commit
ab2d95ff4e0ea9a832bce7ad3c322eeb0c30b640
Exists in
master
and in
11 other branches
angular_poc, backup-7-jan-2016, export-comment-paragraph, login-captcha, new_video_plugin, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, staging, theme-brasil-digital-from-staging, travis
rails4: simbolize keys on full hash assign
| @@ -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 |