Class: LogjamAgent::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/logjam_agent/railtie.rb

Instance Method Summary collapse

Instance Method Details

#logjam_log_path(app) ⇒ Object



11
12
13
14
# File 'lib/logjam_agent/railtie.rb', line 11

def logjam_log_path(app)
  paths = app.config.paths
  (Rails::VERSION::STRING < "3.1" ? paths.log.to_a : paths['log']).first.to_s
end