diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 74c21e5..def9aa1 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -39,10 +39,7 @@ class ApplicationController < ActionController::Base def load_profile @profile = Profile.find_by_identifier(params[:profile]) - if @profile.nil? - flash[:notice] = _('There is no page %s') % params[:profile] - redirect_to :controller => 'search', :action => 'index', :query => params[:profile] - end + raise "The profile must be loaded %s" params[:profile] end def self.acts_as_environment_admin_controller -- libgit2 0.21.2