Top Level Namespace
Defined Under Namespace
Modules: Airbrake, AirbrakeTasks, Client, Printer, Runner, Validator
Classes: AirbrakeGenerator, Options, Project, ProjectFactory, SendJob
Instance Method Summary
collapse
Instance Method Details
#stub_rake_exception_handling! ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/airbrake/rails3_tasks.rb', line 4
def stub_rake_exception_handling!
Rake.application.instance_eval do
class << self
def display_error_message_silent(exception)
puts exception
end
alias_method :display_error_message_old, :display_error_message
alias_method :display_error_message, :display_error_message_silent
end
end
end
|
#unstub_rake_exception_handling! ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/airbrake/rails3_tasks.rb', line 18
def unstub_rake_exception_handling!
Rake.application.instance_eval do
class << self
def display_error_message_silent(exception)
display_error_message_old(exception)
end
end
end
end
|