diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-20 23:52:45 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-20 23:52:45 +0300 |
commit | 672bd4e6ff52da0acad0a5838324ba0039ed484c (patch) | |
tree | 4bcdc9b27ddb57027d638e62060af162d4a29d61 /app/controllers/autocomplete_controller.rb | |
parent | 8536c49f1958b08a6dc556f0cf9abd166f821669 (diff) |
Correctly sends project ID
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb index 155c78bcd8a..61e92c1a805 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -40,7 +40,7 @@ class AutocompleteController < ApplicationController end no_project = OpenStruct.new(id: 0, name_with_namespace: 'No project') - projects.unshift(no_project.marshal_dump) + projects.unshift(no_project.to_h) projects.delete(project) render json: projects.to_json(only: [:id, :name_with_namespace], methods: :name_with_namespace) |