BigW Consortium Gitlab

project_snippet.rb 258 Bytes
Newer Older
1 2 3 4 5 6 7 8
class ProjectSnippet < Snippet
  belongs_to :project
  belongs_to :author, class_name: "User"

  validates :project, presence: true

  # Scopes
  scope :fresh, -> { order("created_at DESC") }
9

Yorick Peterse committed
10 11
  participant :author
  participant :notes_with_associations
12
end