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

Version Path
tawork-0.0.45 app/controllers/application_controller.rb
tawork-0.0.44 app/controllers/application_controller.rb
tawork-0.0.43 app/controllers/application_controller.rb
tawork-0.0.42 app/controllers/application_controller.rb
tawork-0.0.41 app/controllers/application_controller.rb
tawork-0.0.40 app/controllers/application_controller.rb
tawork-0.0.39 app/controllers/application_controller.rb
tawork-0.0.38 app/controllers/application_controller.rb
tawork-0.0.37 app/controllers/application_controller.rb
tawork-0.0.36 app/controllers/application_controller.rb
tawork-0.0.35 app/controllers/application_controller.rb
tawork-0.0.34 app/controllers/application_controller.rb
tawork-0.0.33 app/controllers/application_controller.rb
tawork-0.0.31 app/controllers/application_controller.rb
tawork-0.0.30 app/controllers/application_controller.rb
tawork-0.0.29 app/controllers/application_controller.rb
tawork-0.0.28 app/controllers/application_controller.rb
tawork-0.0.27 app/controllers/application_controller.rb