From 69107bffd7da006b7daf3a8a304aa0d865ec57d7 Mon Sep 17 00:00:00 2001 From: Diego Araújo + Pedro Leal Date: Thu, 5 Apr 2012 17:20:28 -0300 Subject: [PATCH] [Mezuro] Started to write new action for controller --- plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb index 076b120..d3ce4e8 100644 --- a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb +++ b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb @@ -124,10 +124,11 @@ class MezuroPluginProfileController < ProfileController range end - def get_module_metrics_history + def module_metrics_history + metric_name = params[:metric_name] content = profile.articles.find(params[:id]) - module_history = Kalibro::Client::ModuleResultClient.new - module_history.result_history(content.project.name, params[:module_name]) + module_history = content.result_history(content.project.name, params[:module_name]) +#precisamos que uma variável receba um array com os valores da métrica passada a partir do result history render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history } end -- libgit2 0.21.2