editing for profile comments

This commit is contained in:
Kyle Drake 2014-05-02 15:08:12 -07:00
parent f681e6c704
commit 6277a94a5b
12 changed files with 80 additions and 13 deletions

View file

@ -8,6 +8,11 @@ class Event < Sequel::Model
one_to_many :likes
one_to_many :comments
def created_by?(site)
return true if profile_comment && profile_comment.actioning_site_id == site.id
false
end
def liking_site_names
likes.collect {|like| like.actioning_site.username }
end