Commit 1a68c7dd0827607ddbf47b95ab9854c7b60d80fd
1 parent
13b6e3a3
Exists in
master
and in
1 other branch
Fix identation
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
controllers/admin/gamification_plugin_points_controller.rb
... | ... | @@ -5,18 +5,18 @@ class GamificationPluginPointsController < PluginAdminController |
5 | 5 | end |
6 | 6 | |
7 | 7 | def create |
8 | - if params[:identifier].blank? | |
9 | - profile_id = nil | |
10 | - else | |
11 | - profile = Profile.where identifier: params[:identifier] | |
12 | - profile = profile.first | |
13 | - if profile.nil? | |
14 | - flash[:notice] = _("Can't find a profile with the given identifier") | |
15 | - redirect_to action: :index | |
16 | - return | |
17 | - end | |
18 | - profile_id = profile.id | |
19 | - end | |
8 | + if params[:identifier].blank? | |
9 | + profile_id = nil | |
10 | + else | |
11 | + profile = Profile.where identifier: params[:identifier] | |
12 | + profile = profile.first | |
13 | + if profile.nil? | |
14 | + flash[:notice] = _("Can't find a profile with the given identifier") | |
15 | + redirect_to action: :index | |
16 | + return | |
17 | + end | |
18 | + profile_id = profile.id | |
19 | + end | |
20 | 20 | |
21 | 21 | GamificationPlugin::PointsType.all.each do |pType| |
22 | 22 | GamificationPlugin::PointsCategorization.create point_type_id: pType.id, profile_id: profile_id, weight: 0 | ... | ... |