# Copyright (c) 2010-2011, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Service < ActiveRecord::Base include ActionView::Helpers::TextHelper include MarkdownifyHelper belongs_to :user validates_uniqueness_of :uid, :scope => :type def self.titles(service_strings) service_strings.map{|s| "Services::#{s.titleize}"} end def profile_photo_url nil end def delete_post(post) #don't do anything (should be overriden by service extensions) end end