module Epilog::EventDelegateExt
Public Instance Methods
delegates_to?(delegate)
click to toggle source
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.
# File lib/epilog/rails/ext/event_delegate.rb, line 8 def delegates_to?(delegate) @delegate == delegate end