class ActiveSupport::Callbacks::Callback

def self.build(chain, filter, kind, options)

:nodoc:#
def self.build(chain, filter, kind, options)
  if filter.is_a?(String)
    raise ArgumentError, <<-MSG.squish
      Passing string to define a callback is not supported. See the `.set_callback`
      documentation to see supported values.
    MSG
  end
  new chain.name, filter, kind, options, chain.config
end