Class: Yeller::Rails
- Inherits:
-
Object
show all
- Defined in:
- lib/yeller/rails.rb
Defined Under Namespace
Modules: ControllerMethods, Rails2CatchingHooks, Rails3AndFourCatchingHooks
Classes: Railtie
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
29
30
31
|
# File 'lib/yeller/rails.rb', line 29
def self.client
Yeller::Rack.client
end
|
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/yeller/rails.rb', line 9
def self.configure(&block)
Yeller::Rack.configure do |config|
if defined?(::Rails)
config.error_handler = Yeller::LogErrorHandler.new(::Rails.logger)
config.environment = ::Rails.env.to_s
elsif ENV['RAILS_ENV']
config.environment = ENV['RAILS_ENV']
end
block.call(config)
end
end
|
.enabled? ⇒ Boolean
21
22
23
|
# File 'lib/yeller/rails.rb', line 21
def self.enabled?
Yeller::Rack.enabled?
end
|
.monkeypatch_rails3! ⇒ Object
.report(exception, options = {}) ⇒ Object
25
26
27
|
# File 'lib/yeller/rails.rb', line 25
def self.report(exception, options={})
Yeller::Rack.report(exception, options)
end
|