Set the user description to markdown formatting when it changes
This commit is contained in:
parent
02542c96f2
commit
64747f7604
1 changed files with 5 additions and 1 deletions
|
@ -151,7 +151,11 @@ class UserController < ApplicationController
|
|||
@user.pass_crypt_confirmation = params[:user][:pass_crypt_confirmation]
|
||||
end
|
||||
|
||||
@user.description = params[:user][:description]
|
||||
if params[:user][:description] != @user.description
|
||||
@user.description = params[:user][:description]
|
||||
@user.description_format = "markdown"
|
||||
end
|
||||
|
||||
@user.languages = params[:user][:languages].split(",")
|
||||
|
||||
case params[:image_action]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue