summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-22 13:07:03 +0100
committerAzul <azul@leap.se>2013-01-22 13:07:03 +0100
commit0d1da13914675790daaf8def26f27017bf2d2a44 (patch)
tree09b679110cc54b8b4a9c3d7777b6baf1f250dd1a /app/controllers/application_controller.rb
parentde48efcf2a6b5fb096fd209b1efea482f743c19c (diff)
render 404 if needed
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
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