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:
parent
1dab1cd5cc
commit
c917872e8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue