From: Toshi MARUYAMA Date: Tue, 3 Nov 2020 14:56:05 +0000 (+0000) Subject: add empty line after guard clause to lib/redmine/views/labelled_form_builder.rb X-Git-Tag: 4.2.0~579 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd67226014c8fbe2f4249065c94cfc48c9f80c60;p=redmine.git 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 --- 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)