diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-06 15:42:00 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-06 15:42:00 +0200 |
commit | b60430fe8f05eeeffb162f3b746d6cd48522b915 (patch) | |
tree | b559ec903cbf249e283bed01b5fe26bc1e7e80b2 /app/controllers | |
parent | 8bdbe99d69dbce771eb87e15719b00019285d19c (diff) |
Fix sign-in redirecting "back" to a missing image because missing static files hit the raise_not_found method
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
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]}" |