Module: Diaspora::Federated::Shareable

Included in:
Photo, Post
Defined in:
lib/diaspora/federated/shareable.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object


12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/diaspora/federated/shareable.rb', line 12

def self.included(model)
  model.instance_eval do
    #we are order dependant so you don't have to be!
    include Diaspora::Federated::Base
    include Diaspora::Federated::Shareable::InstanceMethods
    include Diaspora::Guid


    xml_attr :diaspora_handle
    xml_attr :public
    xml_attr :created_at
  end
end