Commit
ab2d95ff4e0ea9a832bce7ad3c322eeb0c30b640
Exists in
master
and in
20 other branches
add_member_task_reject_details, admin_visible_profile, community_notifications, fix_comments_pagination, fix_rails4_organization_ratings, fix_sign_up_form, follow_step_fix, forum_topic_creation, mirror_block_improvements, multi_env_on_remote_user, new_security, organization_ratings_improvements, profile_api_improvements, ratings_minor_fixes, send_email_to_admins, stable-spb-1.4, stable-spb-1.5, suggest_rejected_value, web_steps_improvements, xss_terminate_custom_options
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 |