diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-19 15:10:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-19 15:10:09 +0300 |
commit | 690c904b5e340f14c04f93ff688b647b46f7d1a2 (patch) | |
tree | 1eeb0005de86a16132fc08608494a67d5b9f4f71 /app/finders | |
parent | 035cd5ee5e42fda4a896ed43147ebf455fa2f5ba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/snippets_finder.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/finders/snippets_finder.rb b/app/finders/snippets_finder.rb index b1e12721712..bf20a2c2c3d 100644 --- a/app/finders/snippets_finder.rb +++ b/app/finders/snippets_finder.rb @@ -41,6 +41,7 @@ class SnippetsFinder < UnionFinder include FinderMethods include Gitlab::Utils::StrongMemoize + include CreatedAtFilter attr_reader :current_user, :params @@ -69,6 +70,7 @@ class SnippetsFinder < UnionFinder items = init_collection items = by_ids(items) items = items.with_optional_visibility(visibility_from_scope) + items = by_created_at(items) items.order_by(sort_param) end |