2013-03-24 15:26:49 +00:00
|
|
|
class ProjectSnippet < Snippet
|
|
|
|
belongs_to :project
|
|
|
|
belongs_to :author, class_name: "User"
|
|
|
|
|
|
|
|
validates :project, presence: true
|
|
|
|
|
|
|
|
# Scopes
|
|
|
|
scope :fresh, -> { order("created_at DESC") }
|
2016-04-29 23:02:28 +00:00
|
|
|
|
|
|
|
participant :author, :notes
|
2013-03-24 15:26:49 +00:00
|
|
|
end
|