diff --git a/app/controllers/application.rb b/app/controllers/application.rb index def9aa1..9d8d98a 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -39,7 +39,7 @@ class ApplicationController < ActionController::Base def load_profile @profile = Profile.find_by_identifier(params[:profile]) - raise "The profile must be loaded %s" params[:profile] + raise "The profile must be loaded %s" params[:profile] if @profile.nil? end def self.acts_as_environment_admin_controller -- libgit2 0.21.2