diff --git a/controllers/mpog_software_plugin_controller.rb b/controllers/mpog_software_plugin_controller.rb index 2113bab..ad48f0b 100644 --- a/controllers/mpog_software_plugin_controller.rb +++ b/controllers/mpog_software_plugin_controller.rb @@ -121,7 +121,7 @@ class MpogSoftwarePluginController < ApplicationController end data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") - data.collect { |db| + data = data.collect { |db| {:id=>db.id, :label=>db.name} } -- libgit2 0.21.2