Add markdown config translation
This commit is contained in:
parent
eaa1f9e450
commit
5436b8796d
8 changed files with 19 additions and 2 deletions
|
@ -5,6 +5,12 @@ class UpdateAccountService < BaseService
|
|||
was_locked = account.locked
|
||||
update_method = raise_error ? :update! : :update
|
||||
|
||||
if account.user && params.key?(:bio_markdown)
|
||||
user_params = { settings_attributes: { bio_markdown: params['bio_markdown'] } }
|
||||
params.delete(:bio_markdown)
|
||||
account.user.send(update_method, user_params)
|
||||
end
|
||||
|
||||
account.send(update_method, params).tap do |ret|
|
||||
next unless ret
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue