2014-09-02 18:07:02 +05:30
|
|
|
class ProjectSnippet < Snippet
|
|
|
|
belongs_to :project
|
|
|
|
belongs_to :author, class_name: "User"
|
|
|
|
|
|
|
|
validates :project, presence: true
|
|
|
|
|
|
|
|
# Scopes
|
|
|
|
scope :fresh, -> { order("created_at DESC") }
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
participant :author
|
|
|
|
participant :notes_with_associations
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|