From 83dc3c9161d7914cd1aef10a10ceaf93f0420c5d Mon Sep 17 00:00:00 2001 From: "p.tessenow" Date: Thu, 8 Jul 2010 16:47:43 +0000 Subject: [PATCH] did some (doc-)comments in cost_reports_controler git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1361 7926756e-e54e-46e6-9721-ed318f58905e --- app/controllers/cost_reports_controller.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/cost_reports_controller.rb b/app/controllers/cost_reports_controller.rb index ce215088a2..320587c39d 100644 --- a/app/controllers/cost_reports_controller.rb +++ b/app/controllers/cost_reports_controller.rb @@ -11,7 +11,7 @@ class CostReportsController < ApplicationController ## # Determines if the request contains filters to set - def set_filter? + def set_filter? #FIXME: rename to set_query? params[:set_filter].to_i == 1 end @@ -59,7 +59,9 @@ class CostReportsController < ApplicationController end end end - + + ## + # Set a default query to cut down initial load time def default_group_parameters {:columns => [:tweek], :rows => []}.tap do |h| h[:rows] << :project_id unless @project @@ -67,7 +69,7 @@ class CostReportsController < ApplicationController end ## - # Build the query from the current request and save it to + # Build the query from the current request and save it to # the session. def query filters = filter_params