blob: 73c4911c4b763f7d71c7199d031b4e916e17a67a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class Update < ApplicationRecord
include Recordable
belongs_to :stream
validates :stream, :body, presence: true
def path
"/thinks/#{stream.slug}\#update-#{id}"
end
end
|