Module: SocialConnections::ClassMethods
- Defined in:
- lib/social_connections/acts_as_connectable.rb
Instance Method Summary collapse
-
#acts_as_connectable(options = {}) ⇒ Object
Enables an ActiveRecord model to act as a connectable.
- #acts_as_connectable_options ⇒ Object
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 = send :include, InstanceMethods end |
#acts_as_connectable_options ⇒ Object
16 17 18 |
# File 'lib/social_connections/acts_as_connectable.rb', line 16 def @options end |