Commit 26e2a2f561fe909b300970f7bd4d23121f292776

Authored by LeandroNunes
1 parent 00529a19

ActionItem85: fixging bgu

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@778 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/application.rb
@@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base @@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base
39 39
40 def load_profile 40 def load_profile
41 @profile = Profile.find_by_identifier(params[:profile]) 41 @profile = Profile.find_by_identifier(params[:profile])
42 - raise "The profile must be loaded %s" params[:profile] 42 + raise "The profile must be loaded %s" params[:profile] if @profile.nil?
43 end 43 end
44 44
45 def self.acts_as_environment_admin_controller 45 def self.acts_as_environment_admin_controller