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
This commit is contained in:
Toshi MARUYAMA 2011-11-26 01:39:20 +00:00
parent 1dab1cd5cc
commit c917872e8c
1 changed files with 2 additions and 1 deletions

View File

@ -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