Module: Socialization::ActsAsHelpers::ClassMethods

Defined in:
lib/socialization/helpers/acts_as_helpers.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_followable(opts = {}) ⇒ Object

Make the current class a Followable



14
15
16
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 14

def acts_as_followable(opts = {})
  include Socialization::Followable
end

#acts_as_follower(opts = {}) ⇒ Object

Make the current class a Follower



9
10
11
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 9

def acts_as_follower(opts = {})
  include Socialization::Follower
end

#acts_as_likeable(opts = {}) ⇒ Object

Make the current class a Likeable



24
25
26
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 24

def acts_as_likeable(opts = {})
  include Socialization::Likeable
end

#acts_as_liker(opts = {}) ⇒ Object

Make the current class a Liker



19
20
21
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 19

def acts_as_liker(opts = {})
  include Socialization::Liker
end

#acts_as_mentionable(opts = {}) ⇒ Object

Make the current class a Mentionable



34
35
36
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 34

def acts_as_mentionable(opts = {})
  include Socialization::Mentionable
end

#acts_as_mentioner(opts = {}) ⇒ Object

Make the current class a Mentioner



29
30
31
# File 'lib/socialization/helpers/acts_as_helpers.rb', line 29

def acts_as_mentioner(opts = {})
  include Socialization::Mentioner
end