Commit 00529a19c0dc82cfe191c9eb40cd159d9dd3bca4

Authored by LeandroNunes
1 parent 9abfacd1

ActionItem85: fixging bgu

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@777 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
app/controllers/application.rb
@@ -39,10 +39,7 @@ class ApplicationController < ActionController::Base @@ -39,10 +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 - if @profile.nil?  
43 - flash[:notice] = _('There is no page %s') % params[:profile]  
44 - redirect_to :controller => 'search', :action => 'index', :query => params[:profile]  
45 - end 42 + raise "The profile must be loaded %s" params[:profile]
46 end 43 end
47 44
48 def self.acts_as_environment_admin_controller 45 def self.acts_as_environment_admin_controller