Class: Topic

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
ApiHandling, FriendlyId
Defined in:
app/models/topic.rb

Constant Summary collapse

PROPOSAL_TYPES =
%w(proposal enquiry)

Instance Method Summary collapse

Methods included from ApiHandling

expose_api

Instance Method Details

#already_liked?(user) ⇒ Boolean


26
27
28
# File 'app/models/topic.rb', line 26

def already_liked?(user)
  likes.detect{ |like| like.user == user }
end