From d364d7d418b65ff03c913d4c65d6e3a7492ae781 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Tue, 17 Nov 2015 08:43:50 +0100 Subject: [PATCH] indentation --- app/controllers/my_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 63db1aacf8..4831d6dfe2 100644 --- a/app/controllers/my_controller.rb +++ b/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)