Module: Acts::Favable::InstanceMethods
- Defined in:
- lib/favable_methods.rb
Overview
This module contains instance methods
Instance Method Summary collapse
Instance Method Details
#add_favorite(favorite) ⇒ Object
36 37 38 |
# File 'lib/favable_methods.rb', line 36 def add_favorite(favorite) favorites << favorite end |
#favorites_ordered_by_submitted ⇒ Object
32 33 34 |
# File 'lib/favable_methods.rb', line 32 def favorites_ordered_by_submitted Favorite.find_favorites_for_favable(self.class.name, id) end |