From 1b9d578907c173ee2bf7978fb4d8fae573952b3d Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Mon, 7 Oct 2013 16:31:11 +0200 Subject: [PATCH] rename 'name' to 'subject' and 'end_date' in 'due_date' in planning_element api to be consistent --- app/helpers/planning_elements_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/planning_elements_helper.rb b/app/helpers/planning_elements_helper.rb index c33ed0cc6d..9bfcf8e101 100644 --- a/app/helpers/planning_elements_helper.rb +++ b/app/helpers/planning_elements_helper.rb @@ -35,21 +35,21 @@ module PlanningElementsHelper :identifier => planning_element.project.identifier, :name => planning_element.project.name) - api.name(planning_element.subject) + api.subject(planning_element.subject) api.description(planning_element.description) api.start_date(planning_element.start_date.to_formatted_s(:db)) unless planning_element.start_date.nil? - api.end_date(planning_element.due_date.to_formatted_s(:db)) unless planning_element.due_date.nil? + api.due_date(planning_element.due_date.to_formatted_s(:db)) unless planning_element.due_date.nil? if planning_element.parent - api.parent(:id => planning_element.parent_id, :name => planning_element.parent.subject) + api.parent(:id => planning_element.parent_id, :subject => planning_element.parent.subject) end if planning_element.children.present? api.array(:children, :size => planning_element.children.size) do planning_element.children.each do |child| - api.child(:id => child.id, :name => child.subject) + api.child(:id => child.id, :subject => child.subject) end end end