summaryrefslogtreecommitdiff
path: root/app/finders/autocomplete/project_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/autocomplete/project_finder.rb')
-rw-r--r--app/finders/autocomplete/project_finder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/finders/autocomplete/project_finder.rb b/app/finders/autocomplete/project_finder.rb
index 3a4696f4c2e..6e51ae4c70d 100644
--- a/app/finders/autocomplete/project_finder.rb
+++ b/app/finders/autocomplete/project_finder.rb
@@ -25,8 +25,7 @@ module Autocomplete
# This removes the need for using `return render_404` and similar patterns
# in controllers that use this finder.
unless Ability.allowed?(current_user, :read_project, project)
- raise ActiveRecord::RecordNotFound
- .new("Could not find a Project with ID #{project_id}")
+ raise ActiveRecord::RecordNotFound, "Could not find a Project with ID #{project_id}"
end
project