mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-22 09:42:11 +00:00
bugfix devise
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :exception
|
||||
before_action :authenticate_user!
|
||||
# before_action :authenticate_user!
|
||||
protect_from_forgery unless: -> { request.format.json? } # Only accept json
|
||||
end
|
||||
|
@@ -1,5 +1,5 @@
|
||||
class PagesController < ApplicationController
|
||||
skip_before_action :authenticate_user!, only: [:call]
|
||||
# skip_before_action :authenticate_user!, only: [:call]
|
||||
|
||||
def call
|
||||
end
|
||||
|
Reference in New Issue
Block a user