From 1a68c7dd0827607ddbf47b95ab9854c7b60d80fd Mon Sep 17 00:00:00 2001 From: Hugo Melo Date: Thu, 15 Oct 2015 19:12:50 -0300 Subject: [PATCH] Fix identation --- controllers/admin/gamification_plugin_points_controller.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/controllers/admin/gamification_plugin_points_controller.rb b/controllers/admin/gamification_plugin_points_controller.rb index 089a71f..5dc0bf8 100644 --- a/controllers/admin/gamification_plugin_points_controller.rb +++ b/controllers/admin/gamification_plugin_points_controller.rb @@ -5,18 +5,18 @@ class GamificationPluginPointsController < PluginAdminController end def create - if params[:identifier].blank? - profile_id = nil - else - profile = Profile.where identifier: params[:identifier] - profile = profile.first - if profile.nil? - flash[:notice] = _("Can't find a profile with the given identifier") - redirect_to action: :index - return - end - profile_id = profile.id - end + if params[:identifier].blank? + profile_id = nil + else + profile = Profile.where identifier: params[:identifier] + profile = profile.first + if profile.nil? + flash[:notice] = _("Can't find a profile with the given identifier") + redirect_to action: :index + return + end + profile_id = profile.id + end GamificationPlugin::PointsType.all.each do |pType| GamificationPlugin::PointsCategorization.create point_type_id: pType.id, profile_id: profile_id, weight: 0 -- libgit2 0.21.2