summaryrefslogtreecommitdiff
path: root/app/models/simple_discussion.rb
blob: a5ef5c565e75d30ae2b8a0010a26516b5f29ce7c (plain)
1
2
3
4
5
6
7
8
9
class SimpleDiscussion < Discussion
  def self.build_discussion_id(note)
    [*super(note), SecureRandom.hex]
  end

  def reply_attributes
    super.merge(discussion_id: self.id)
  end
end