indentation

pull/3836/head
Jens Ulferts 9 years ago
parent 8868b3d741
commit d364d7d418
  1. 8
      app/controllers/my_controller.rb

@ -290,10 +290,10 @@ class MyController < ApplicationController
if request.patch?
@user.attributes = permitted_params.user
@user.pref.attributes = if params[:pref].present?
permitted_params.pref
else
{}
end
permitted_params.pref
else
{}
end
if @user.save
@user.pref.save
flash[:notice] = l(:notice_account_updated)

Loading…
Cancel
Save