Sha256: 152345591f07681a4232f4804ca4bbb80f2bdda9cdb9ccbe29c08944d13535cb
Contents?: true
Size: 317 Bytes
Versions: 6
Compression:
Stored size: 317 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception skip_before_action :verify_authenticity_token def current_user @current_user = User.first end end
Version data entries
6 entries across 6 versions & 1 rubygems