Module: RSolr::Ext::Notifications::ClassMethods
- Defined in:
- lib/rsolr-ext/notifications.rb
Instance Method Summary collapse
Instance Method Details
#enable_notifications! ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/rsolr-ext/notifications.rb', line 15 def enable_notifications! self.class_exec do unless method_defined?(:execute_without_notifications) alias_method :execute_without_notifications, :execute alias_method :execute, :execute_with_notifications end end end |