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
This commit is contained in:
Toshi MARUYAMA
2020-11-03 14:56:05 +00:00
parent 8fa5b6051f
commit bd67226014

View File

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