Module: TracerBullets::Methods

Included in:
Controller::InstanceMethods, View::InstanceMethods
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?
    Rails.logger.debug( "Elapsed: #{((Time.now - @tracer_bullet_start_time)*1000).to_i}ms #{caller(0)[1]}" ) 
    @tracer_bullet_start_time = Time.now
  end
end