Sha256: 71ab87e2a05c180c2c896e7239fb0476d76d2655115637272bc294629590e33a

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

require 'speed_gun/profiler/base'

class SpeedGun::Profiler::ActionView < SpeedGun::Profiler::Base
  hook_method ::ActionView::Template, :render

  attr_reader :template_path
  alias_method :title, :template_path

  def before_profile(action_view, *args)
    @template_path = action_view.instance_variable_get(:@virtual_path)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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