mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-08-07 17:59:13 +00:00
6 lines
213 B
Ruby
6 lines
213 B
Ruby
class ApplicationController < ActionController::Base
|
|
protect_from_forgery with: :exception
|
|
# before_action :authenticate_user!
|
|
protect_from_forgery unless: -> { request.format.json? } # Only accept json
|
|
end
|