mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 14:56:22 +00:00
cerrar la sesión del todo
This commit is contained in:
parent
2e7c1d23f4
commit
102cd0abd3
1 changed files with 1 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
include ExceptionHandler
|
include ExceptionHandler
|
||||||
|
|
||||||
protect_from_forgery with: forgery_method, prepend: true
|
protect_from_forgery with: :null_session, prepend: true
|
||||||
|
|
||||||
before_action :prepare_exception_notifier
|
before_action :prepare_exception_notifier
|
||||||
before_action :configure_permitted_parameters, if: :devise_controller?
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
||||||
|
@ -54,10 +54,6 @@ class ApplicationController < ActionController::Base
|
||||||
render 'application/page_not_found', status: :not_found
|
render 'application/page_not_found', status: :not_found
|
||||||
end
|
end
|
||||||
|
|
||||||
def forgery_method
|
|
||||||
Rails.env.production? ? :null_session : :exception
|
|
||||||
end
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def configure_permitted_parameters
|
def configure_permitted_parameters
|
||||||
|
|
Loading…
Reference in a new issue