Module: TracerBullets::Methods

Included in:
Controller, View
Defined in:
lib/tracer_bullets.rb

Instance Method Summary collapse

Instance Method Details

#tracer_bulletObject Also known as: tb



6
7
8
9
10
11
# File 'lib/tracer_bullets.rb', line 6

def tracer_bullet
  if Rails.env.development?
    _tracer_bullets_log( "Elapsed: #{((Time.now - @tracer_bullet_start_time)*1000).to_i}ms #{caller(0)[1]}" )
    @tracer_bullet_start_time = Time.now
  end
end