about summary refs log blame commit diff
path: root/app/controllers/application_controller.rb
blob: d5eaecdb169edfd8031d5a7545d803d66c5fdd28 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                        





                                          
   
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