notebook/app/models/stream/share_comment.rb
2024-03-27 14:15:53 -07:00

11 lines
282 B
Ruby

class ShareComment < ApplicationRecord
acts_as_paranoid
belongs_to :user, optional: true # now that we're auto-deleting this data, we can probably remove this constraint without db errors
belongs_to :content_page_share
def from_op?(share)
user == share.user
end
end