Skip to content

Commit 5b98728

Browse files
committed
RuboCop offenses
1 parent 0cdd520 commit 5b98728

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bootstrap_form/components/labels.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def label_layout_classes(custom_label_col, group_layout)
4343
end
4444

4545
def label_text(name, options)
46-
label = options[:text] || object&.class&.try(:human_attribute_name, name)&.html_safe # rubocop:disable Rails/OutputSafety
46+
label = options[:text] || object&.class&.try(:human_attribute_name, name)&.html_safe # rubocop:disable Rails/OutputSafety Style/SafeNavigationChainLength
4747
if label_errors && error?(name)
4848
(" ".html_safe + get_error_messages(name)).prepend(label)
4949
else

lib/bootstrap_form/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def fields_for_options(record_object, fields_options)
9292
%i[layout control_col inline_errors label_errors].each do |option|
9393
field_options[option] ||= options[option]
9494
end
95-
field_options[:label_col] = field_options[:label_col].present? ? (field_options[:label_col]).to_s : options[:label_col]
95+
field_options[:label_col] = field_options[:label_col].present? ? field_options[:label_col].to_s : options[:label_col]
9696
field_options
9797
end
9898

0 commit comments

Comments
 (0)