Module: Epilog::EventDelegateExt
- Defined in:
- lib/epilog/rails/ext/event_delegate.rb
Instance Method Summary collapse
-
#delegates_to?(delegate) ⇒ Boolean
Rails has no public API to determine the delegate for an event object.
Instance Method Details
#delegates_to?(delegate) ⇒ Boolean
Rails has no public API to determine the delegate for an event object. Add this method to allow checking if the delegate matches a given object.
8 9 10 |
# File 'lib/epilog/rails/ext/event_delegate.rb', line 8 def delegates_to?(delegate) @delegate == delegate end |