From 00529a19c0dc82cfe191c9eb40cd159d9dd3bca4 Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Sat, 20 Oct 2007 04:31:11 +0000 Subject: [PATCH] ActionItem85: fixging bgu --- app/controllers/application.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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