This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Spork.prefork do | |
| require "rails/application" | |
| # Prevent Devise from loading the User model super early with it's route hacks for Rails 3.1 rc4 | |
| # see also: https://github.com/sporkrb/spork/wiki/Spork.trap_method-Jujutsu | |
| Spork.trap_method(Rails::Application, :reload_routes!) | |
| Spork.trap_method(Rails::Application::RoutesReloader, :reload!) | |
| # rest of your prefork here... | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| current_scheduler = scheduler(:availabilities) | |
| def current_scheduler.handle_exception(job, exception) | |
| Airbrake.do_the_right_thing(exception, other_params) | |
| puts "job #{job.job_id} caught exception '#{exception}' - the Airbrake has been triggered" | |
| end | |
| class TaskManager | |
| # [..] | |
| # do you think this may work? (hoptoad_options scope) |