about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-06 15:42:00 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-06 15:42:00 +0200
commitb60430fe8f05eeeffb162f3b746d6cd48522b915 (patch)
treeb559ec903cbf249e283bed01b5fe26bc1e7e80b2 /app
parent8bdbe99d69dbce771eb87e15719b00019285d19c (diff)
Fix sign-in redirecting "back" to a missing image because missing static files hit the raise_not_found method
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 1f991cf67..e009fb879 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
   rescue_from ActionController::RoutingError, with: :not_found
   rescue_from ActiveRecord::RecordNotFound, with: :not_found
 
-  before_action :store_current_location, unless: :devise_controller?
+  before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?
 
   def raise_not_found
     raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"