Commit
ab2d95ff4e0ea9a832bce7ad3c322eeb0c30b640
Exists in
staging
and in
19 other branches
angular_poc, api-homepage, api_visitor, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, environment-api, export-comment-paragraph, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, production
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 |