Module: SocialConnections::ClassMethods

Defined in:
lib/social_connections/acts_as_connectable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_connectable(options = {}) ⇒ Object

Enables an ActiveRecord model to act as a connectable. Recognized options:

  • :verbs - specify a list of constants recognized as verbs. If none given, :likes is the only default verb.



12
13
14
15
# File 'lib/social_connections/acts_as_connectable.rb', line 12

def acts_as_connectable(options = {})
  @options = options
  send :include, InstanceMethods
end

#acts_as_connectable_optionsObject



16
17
18
# File 'lib/social_connections/acts_as_connectable.rb', line 16

def acts_as_connectable_options
  @options
end