Method: Messaging.without_dispatch
- Defined in:
- lib/messaging.rb
.without_dispatch(&block) ⇒ Object
59 60 61 62 63 64 65 66 67 68 |
# File 'lib/messaging.rb', line 59 def self.without_dispatch(&block) current_dispatcher = Config.dispatcher.adapter Config.dispatcher.adapter = :null_adapter result = block.call ensure Config.dispatcher.adapter = current_dispatcher result end |