Sha256: 6df466b3a9254f587cbd5d3c7cb40d752a7bbc016c4fb16311bd154b37cacb94

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

require 'speed_gun/profiler/base'

class SpeedGun::Profiler::ActionController < SpeedGun::Profiler::Base
  hook_method ::ActionController::Base, :process

  attr_reader :action_name
  alias_method :title, :action_name

  def before_profile(controller, action)
    @action_name = "#{controller.class.name}##{action}"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
speed_gun-0.0.4 lib/speed_gun/profiler/action_controller.rb
speed_gun-0.0.3 lib/speed_gun/profiler/action_controller.rb
speed_gun-0.0.2 lib/speed_gun/profiler/action_controller.rb
speed_gun-0.0.1 lib/speed_gun/profiler/action_controller.rb