about summary refs log tree commit diff stats
path: root/app/models/update.rb
blob: 01907d85cc9530944fc6e97d9e4231d5cbeaf9ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Update < ApplicationRecord
  include Recordable

  belongs_to :stream

  validates :stream, :body, presence: true

  def path
    "/thinks/#{stream.slug}\#update-#{id}"
  end

  def taggable
    stream
  end
end