Commit 155c75ae authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'fj-refactor-snippet-model' into 'master'

Remove unnecessary relations and scopes in ProjectSnippet

See merge request gitlab-org/gitlab!19493
parents 8a56038a f6501625
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
class ProjectSnippet < Snippet class ProjectSnippet < Snippet
belongs_to :project belongs_to :project
belongs_to :author, class_name: "User"
validates :project, presence: true validates :project, presence: true
# Scopes
scope :fresh, -> { order("created_at DESC") }
participant :author
participant :notes_with_associations
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment