Sfoglia il codice sorgente

Include masquerade_user. Fixes #53

Chris Oliver 6 anni fa
parent
commit
964c5f6260
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/controllers/application_controller.rb

+ 1 - 0
app/controllers/application_controller.rb

@@ -2,6 +2,7 @@ class ApplicationController < ActionController::Base
   protect_from_forgery with: :exception
 
   before_action :configure_permitted_parameters, if: :devise_controller?
+  before_action :masquerade_user!
 
   protected