721014c927
This reverts commit 3e99123095
.
12 lines
258 B
Ruby
12 lines
258 B
Ruby
class ProjectSnippet < Snippet
|
|
belongs_to :project
|
|
belongs_to :author, class_name: "User"
|
|
|
|
validates :project, presence: true
|
|
|
|
# Scopes
|
|
scope :fresh, -> { order("created_at DESC") }
|
|
|
|
participant :author
|
|
participant :notes_with_associations
|
|
end
|