diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-26 01:39:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-26 01:39:20 +0000 |
commit | c917872e8c32e314b72788d754f18d09527a5a9d (patch) | |
tree | d5fa362acc0d4d877d864d39cf1d7f920a2e3e80 | |
parent | 1dab1cd5cc9d46724b8d722d994737806ee22bb9 (diff) | |
download | redmine-c917872e8c32e314b72788d754f18d09527a5a9d.tar.gz redmine-c917872e8c32e314b72788d754f18d09527a5a9d.zip |
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
-rw-r--r-- | lib/tabular_form_builder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |