Module: Rails

Defined in:
lib/rtml/init.rb

Defined Under Namespace

Modules: VERSION Classes: Configuration

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.backtrace_cleanerObject



40
41
42
# File 'lib/rtml/init.rb', line 40

def backtrace_cleaner
  @backtrace_cleaner ||= ActiveSupport::BacktraceCleaner.new
end

.configurationObject



44
45
46
# File 'lib/rtml/init.rb', line 44

def configuration
  @configuration ||= Configuration.new
end

.logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



34
35
36
# File 'lib/rtml/init.rb', line 34

def logger=(value)
  @logger = value
end

Class Method Details

.rootObject



48
49
50
# File 'lib/rtml/init.rb', line 48

def root
  RAILS_ROOT
end

Instance Method Details

#loggerObject



36
37
38
# File 'lib/rtml/init.rb', line 36

def logger
  @logger ||= Logger.new(File.join(RAILS_ROOT, "tmp/rtml.log"))
end