From c917872e8c32e314b72788d754f18d09527a5a9d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 26 Nov 2011 01:39:20 +0000 Subject: [PATCH] Ruby 1.9: fix TabularFormBuilder to show "translation missing: en, field_lock_version" (#6853, #4050) Contributed by Moritz Breit. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7928 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tabular_form_builder.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tabular_form_builder.rb b/lib/tabular_form_builder.rb index bfa6e1790..7dbf6fc00 100644 --- a/lib/tabular_form_builder.rb +++ b/lib/tabular_form_builder.rb @@ -20,7 +20,8 @@ require 'action_view/helpers/form_helper' class TabularFormBuilder < ActionView::Helpers::FormBuilder include Redmine::I18n - (field_helpers - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector| + (field_helpers.map(&:to_s) - %w(radio_button hidden_field fields_for) + + %w(date_select)).each do |selector| src = <<-END_SRC def #{selector}(field, options = {}) label_for_field(field, options) + super