Module: RSolr::Ext::Notifications
- Defined in:
- lib/rsolr-ext/notifications.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/rsolr-ext/notifications.rb', line 3 def self.included(base) base.send :extend, ClassMethods end |
Instance Method Details
#execute_with_notifications(*args) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/rsolr-ext/notifications.rb', line 7 def execute_with_notifications(*args) payload = args.first.dup ActiveSupport::Notifications.instrument("execute.rsolr_client", payload) do payload[:response] = execute_without_notifications(*args) end end |