Sha256: 1aa14f5f4179af9ca6131e760eb73d77425f3e6ae700625c9f4e3874792ddf3d
Contents?: true
Size: 377 Bytes
Versions: 18
Compression:
Stored size: 377 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 before_filter :profiler_check helper :all protected def profiler_check if params[:profile].present? Rack::MiniProfiler.authorize_request end end end
Version data entries
18 entries across 18 versions & 1 rubygems