user brief introduction allow blank

dev_course
p31729568 6 years ago
parent 3f837dbda5
commit 460a89fe6e

@ -90,10 +90,6 @@ class UsersController < ApplicationController
def brief_introduction def brief_introduction
content = params[:content].to_s.strip content = params[:content].to_s.strip
if content.blank?
render_error('内容不能为空')
return
end
current_user.user_extension.update!(brief_introduction: content) current_user.user_extension.update!(brief_introduction: content)

Loading…
Cancel
Save