Module: GSGraph::Connections::UserLikes
- Included in:
- User
- Defined in:
- lib/gs_graph/connections/user_likes.rb
Instance Method Summary collapse
Instance Method Details
#like?(page, options = {}) ⇒ Boolean
13 14 15 16 |
# File 'lib/gs_graph/connections/user_likes.rb', line 13 def like?(page, = {}) like = self.connection :likes, .merge(:connection_scope => page.identifier) like.present? end |