Module: Popular::Popular::ClassMethods
- Defined in:
- lib/popular/popular.rb
Overview
ClassMethods included in popular models
Instance Attribute Summary collapse
-
#friendship_profile ⇒ Object
Returns the value of attribute friendship_profile.
Instance Method Summary collapse
-
#after_befriend(*args, &blk) ⇒ Object
after_befriend callback convenience class method Fired after a popular_model befriends another popular_model.
-
#after_unfriend(*args, &blk) ⇒ Object
after_unfriend callback convenience class method Fired after a popular_model unfriends another popular_model.
-
#before_befriend(*args, &blk) ⇒ Object
before_befriend callback convenience class method Fired before a popular model befriends another popular_model.
-
#before_unfriend(*args, &blk) ⇒ Object
before_unfriend callback convenience class method Fired before a popular_model unfriends another popular_model.
Instance Attribute Details
#friendship_profile ⇒ Object
Returns the value of attribute friendship_profile.
152 153 154 |
# File 'lib/popular/popular.rb', line 152 def friendship_profile @friendship_profile end |
Instance Method Details
#after_befriend(*args, &blk) ⇒ Object
after_befriend callback convenience class method Fired after a popular_model befriends another popular_model
240 241 242 |
# File 'lib/popular/popular.rb', line 240 def after_befriend *args, &blk set_callback :befriend, :after, *args, &blk end |
#after_unfriend(*args, &blk) ⇒ Object
after_unfriend callback convenience class method Fired after a popular_model unfriends another popular_model
173 174 175 |
# File 'lib/popular/popular.rb', line 173 def after_unfriend *args, &blk set_callback :unfriend, :after, *args, &blk end |
#before_befriend(*args, &blk) ⇒ Object
before_befriend callback convenience class method Fired before a popular model befriends another popular_model
218 219 220 |
# File 'lib/popular/popular.rb', line 218 def before_befriend *args, &blk set_callback :befriend, :before, *args, &blk end |
#before_unfriend(*args, &blk) ⇒ Object
before_unfriend callback convenience class method Fired before a popular_model unfriends another popular_model
196 197 198 |
# File 'lib/popular/popular.rb', line 196 def before_unfriend *args, &blk set_callback :unfriend, :before, *args, &blk end |