From 02b9fa0386bb1d96ecd9078da2fb55d8b522f70d Mon Sep 17 00:00:00 2001 From: Andreas Brandl Date: Tue, 20 Feb 2018 17:02:11 +0100 Subject: Rename use_conditions_only option to use_where_in. --- app/finders/snippets_finder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/finders/snippets_finder.rb') diff --git a/app/finders/snippets_finder.rb b/app/finders/snippets_finder.rb index 581cd5f47a7..ec61fe1892e 100644 --- a/app/finders/snippets_finder.rb +++ b/app/finders/snippets_finder.rb @@ -56,7 +56,7 @@ class SnippetsFinder < UnionFinder end def feature_available_projects - projects = Project.public_or_visible_to_user(current_user, use_conditions_only: false) do |part| + projects = Project.public_or_visible_to_user(current_user, use_where_in: false) do |part| part.with_feature_available_for_user(:snippets, current_user) end.select(:id) -- cgit v1.2.3