Module: RubyClock::Rails::InstanceMethods
- Included in:
- RubyClock
- Defined in:
- lib/ruby-clock/rails.rb
Instance Method Summary collapse
Instance Method Details
#add_rails_executor_to_around_actions ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/ruby-clock/rails.rb', line 14 def add_rails_executor_to_around_actions if defined?(::Rails) RubyClock.instance.around_actions << Proc.new do |job_proc| ::Rails.application.executor.wrap do job_proc.call end end end end |