Module: Quiver::Duty::PrependMethods
- Defined in:
- lib/quiver/duty.rb
Instance Method Summary collapse
Instance Method Details
#perform(*args) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/quiver/duty.rb', line 18 def perform(*args) super rescue => e handle_error(e) if respond_to?(:handle_error, true) raise ensure if self.class.parents[-2]::Application.using_active_record ActiveRecord::Base.clear_active_connections! end end |