Method: ActiveSupport::Callbacks::Callback#duplicates?

Defined in:
activesupport/lib/active_support/callbacks.rb

#duplicates?(other) ⇒ Boolean

Returns:

  • (Boolean)


272
273
274
275
276
277
278
279
# File 'activesupport/lib/active_support/callbacks.rb', line 272

def duplicates?(other)
  case @filter
  when Symbol
    matches?(other.kind, other.filter)
  else
    false
  end
end