Module: GSGraph::Connections::Likes::Likable
- Included in:
- Album, GSGraph::Checkin, GSGraph::Comment, Link, Note, OpenGraph::Action, Photo, Post, Status, UserAchievement, Video
- Defined in:
- lib/gs_graph/connections/likes.rb
Instance Method Summary collapse
Instance Method Details
#like!(options = {}) ⇒ Object
19 20 21 |
# File 'lib/gs_graph/connections/likes.rb', line 19 def like!( = {}) post .merge(:connection => :likes) end |
#unlike!(options = {}) ⇒ Object
23 24 25 |
# File 'lib/gs_graph/connections/likes.rb', line 23 def unlike!( = {}) destroy .merge(:connection => :likes) end |