From 0d1da13914675790daaf8def26f27017bf2d2a44 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 22 Jan 2013 13:07:03 +0100 Subject: render 404 if needed --- app/controllers/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index be7aa1f..a1ea008 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,4 +2,8 @@ class ApplicationController < ActionController::Base protect_from_forgery ActiveSupport.run_load_hooks(:application_controller, self) + + def not_found + raise RECORD_NOT_FOUND.new('Not Found') + end end -- cgit v1.2.3 From def5a00415ebced58bb0f7c1254f6cbedb27a23f Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 23 Jan 2013 09:23:18 +0100 Subject: make raising not found error less confusing --- app/controllers/application_controller.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'app') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a1ea008..06b245a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,7 +3,4 @@ class ApplicationController < ActionController::Base ActiveSupport.run_load_hooks(:application_controller, self) - def not_found - raise RECORD_NOT_FOUND.new('Not Found') - end end -- cgit v1.2.3