diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-03 14:56:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-03 14:56:05 +0000 |
commit | bd67226014c8fbe2f4249065c94cfc48c9f80c60 (patch) | |
tree | acc2830b6d5acdcbf8b55817de7d9095266485ba /lib/redmine | |
parent | 8fa5b6051f510b0d2a34f42040a7361989e50c56 (diff) | |
download | redmine-bd67226014c8fbe2f4249065c94cfc48c9f80c60.tar.gz redmine-bd67226014c8fbe2f4249065c94cfc48c9f80c60.zip |
add empty line after guard clause to lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20238 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/views/labelled_form_builder.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb index 879dbc76b..7c860759f 100644 --- a/lib/redmine/views/labelled_form_builder.rb +++ b/lib/redmine/views/labelled_form_builder.rb @@ -56,6 +56,7 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder # Returns a label tag for the given field def label_for_field(field, options = {}) return ''.html_safe if options.delete(:no_label) + text = options[:label].is_a?(Symbol) ? l(options[:label]) : options[:label] text ||= @object.class.human_attribute_name(field) text += @template.content_tag("span", " *", :class => "required") if options.delete(:required) |