FIX: wasn't able to save watched/tracked/muted categories/tags

This commit is contained in:
Régis Hanol 2017-09-29 13:09:48 +02:00
parent 41261b32a5
commit f6c484881b
1 changed files with 6 additions and 6 deletions

View File

@ -864,12 +864,12 @@ class UsersController < ApplicationController
:website,
:dismissed_banner_key,
:profile_background,
:card_background,
:muted_category_ids,
:watched_category_ids,
:tracked_category_ids,
:watched_first_post_category_ids
] + UserUpdater::OPTION_ATTR
:card_background
]
permitted.concat UserUpdater::OPTION_ATTR
permitted.concat UserUpdater::CATEGORY_IDS.keys.map { |k| { k => [] } }
permitted.concat UserUpdater::TAG_NAMES.keys.map { |k| { k => [] } }
result = params
.permit(permitted)