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
pull/6827/head
p.tessenow 15 years ago
parent 1906f7ac09
commit 83dc3c9161
  1. 8
      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

Loading…
Cancel
Save