Explorar o código

Include masquerade_user. Fixes #53

Chris Oliver %!s(int64=6) %!d(string=hai) anos
pai
achega
964c5f6260
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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