Class: Flag
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Flag
- Defined in:
- lib/flag.rb
Instance Method Summary collapse
-
#callback_flaggable ⇒ Object
Pings the ‘after_flagged’ callback in the content model, if it exists.
- #set_owner_id ⇒ Object
Instance Method Details
#callback_flaggable ⇒ Object
Pings the ‘after_flagged’ callback in the content model, if it exists.
28 29 30 |
# File 'lib/flag.rb', line 28 def callback_flaggable flaggable.callback :after_flagged end |
#set_owner_id ⇒ Object
33 34 35 |
# File 'lib/flag.rb', line 33 def set_owner_id self.flaggable_user_id = flaggable.user_id end |