]> cat aescling's git repositories - mastodon.git/commitdiff
Fix sign-in redirecting "back" to a missing image because missing static files hit...
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 13:42:00 +0000 (15:42 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 13:42:00 +0000 (15:42 +0200)
app/controllers/application_controller.rb

index 1f991cf6720723cbe98249bfe0c58c094b596d1c..e009fb8798fbe2c7bfe50ef200a4f750a4a9da6e 100644 (file)
@@ -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]}"