rails8-memoapp/app/controllers/application_controller.rb

4 lines
133 B
Ruby

class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
end