]> git.openstreetmap.org Git - rails.git/commitdiff
Correctly indent this if/else clause
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 24 Apr 2010 12:37:51 +0000 (12:37 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 24 Apr 2010 12:37:51 +0000 (12:37 +0000)
Some of the content of the else was at the same indent level as the
else itself.

app/controllers/user_controller.rb

index 60e35016a45e37e6b55f5c41b208c34201230c42..f9755204a27b4c0dfb6d64484d9cb41d4e2b5571 100644 (file)
@@ -36,13 +36,13 @@ class UserController < ApplicationController
           return 
         end   
       else
-      @user = User.new(params[:user])
+        @user = User.new(params[:user])
 
-      @user.visible = true
-      @user.data_public = true
-      @user.description = "" if @user.description.nil?
-      @user.creation_ip = request.remote_ip
-      @user.languages = request.user_preferred_languages
+        @user.visible = true
+        @user.data_public = true
+        @user.description = "" if @user.description.nil?
+        @user.creation_ip = request.remote_ip
+        @user.languages = request.user_preferred_languages
         #Set the openid_url to nil as for one it is used 
         #to check if the openid could be validated and secondly 
         #to not get dupplicate conflicts for an empty openid