blob: d5eaecdb169edfd8031d5a7545d803d66c5fdd28 (
plain) (
tree)
|
|
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
# Profiling
before_action do
if current_user && current_user.admin?
Rack::MiniProfiler.authorize_request
end
end
end
|