/client/Archipelago/vendor/

ref='/'>cgit logo index : thoughts
mixed-content personal blog
about summary refs log blame commit diff stats
path: root/app/models/update.rb
blob: 01907d85cc9530944fc6e97d9e4231d5cbeaf9ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                

                    



                                          


                                          



              
   
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