Class: Adhoq::Configuration
- Inherits:
-
Object
- Object
- Adhoq::Configuration
- Defined in:
- lib/adhoq/configuration.rb
Instance Method Summary collapse
Instance Method Details
#async_execution? ⇒ Boolean
24 25 26 |
# File 'lib/adhoq/configuration.rb', line 24 def async_execution? defined?(ActiveJob) && Adhoq.config.async_execution end |
#callablize(name) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/adhoq/configuration.rb', line 16 def callablize(name) if (c = public_send(name)).respond_to?(:call) c else c.to_proc end end |