Class: Like::Generator

Inherits:
Diaspora::Federated::Generator show all
Defined in:
app/models/like.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Diaspora::Federated::Generator

#build, #create!, #initialize

Constructor Details

This class inherits a constructor from Diaspora::Federated::Generator

Class Method Details

.federated_classObject


20
21
22
# File 'app/models/like.rb', line 20

def self.federated_class
  Like
end

Instance Method Details

#relayable_optionsObject


24
25
26
# File 'app/models/like.rb', line 24

def relayable_options
  {:target => @target, :positive => true}
end