From 2f709c92ba93d46c81adc49fac0d77584018a3fe Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Thu, 22 May 2014 12:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84bid=5Fhelper=EF=BC=8Ccontest?= =?UTF-8?q?=5Fhelper=E4=BB=A5=E5=8F=8Aapplication=5Fhelper=E4=B8=AD?= =?UTF-8?q?=E5=85=B1=E5=90=8C=E7=94=A8=E5=88=B0=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 10 +++++++++- app/helpers/bids_helper.rb | 14 +++++++------- app/helpers/contests_helper.rb | 16 ++++++++-------- app/helpers/softapplications_helper.rb | 14 +++++++------- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index aeacae866..e486274a4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -707,7 +707,15 @@ module ApplicationHelper end end end - + + def select_option_helper option + tmp = Hash.new + tmp={"" => ""} + option.each do |project| + tmp[project.name] = project.identifier + end + tmp + end # Redmine links # # Examples: diff --git a/app/helpers/bids_helper.rb b/app/helpers/bids_helper.rb index bd39d6c28..7d4807330 100644 --- a/app/helpers/bids_helper.rb +++ b/app/helpers/bids_helper.rb @@ -143,12 +143,12 @@ module BidsHelper people.include?(User.current) end - def select_option_helper option - tmp = Hash.new - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end end \ No newline at end of file diff --git a/app/helpers/contests_helper.rb b/app/helpers/contests_helper.rb index 24df6a752..8206a8ff0 100644 --- a/app/helpers/contests_helper.rb +++ b/app/helpers/contests_helper.rb @@ -157,14 +157,14 @@ module ContestsHelper people.include?(User.current) end - def select_option_helper option - tmp = Hash.new - tmp={"" => ""} - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # tmp={"" => ""} + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end def select_option_app_helper options tmp = Hash.new options.each do |option| diff --git a/app/helpers/softapplications_helper.rb b/app/helpers/softapplications_helper.rb index 67ab93180..8bb5d0d1a 100644 --- a/app/helpers/softapplications_helper.rb +++ b/app/helpers/softapplications_helper.rb @@ -14,13 +14,13 @@ module SoftapplicationsHelper content_tag('div', content, :class => "tabs") end - def select_option_helper option - tmp = Hash.new - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end end