# Copyright (c) 2010, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora module Webhooks require 'builder/xchar' def to_diaspora_xml xml = "" xml += "#{to_xml.to_s}" xml += "" end def x(input) input.to_s.to_xs end # @abstract def subscribers(user) raise 'you must override subscribers in order to enable federation on this model' end # @abstract def receive(user, person) raise 'you must override receive in order to enable federation on this model' end # @param [User] sender def after_dispatch sender end end end