Fix haml-lint Rubocop lambda cop (#25946)

This commit is contained in:
Matt Jankowski
2023-07-17 09:07:29 -04:00
committed by GitHub
parent 5096deb818
commit 361dd43235
14 changed files with 23 additions and 23 deletions

View File

@ -15,7 +15,7 @@
.fields-row
.fields-row__column.fields-row__column-6.fields-group
= f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, include_blank: false, label_method: lambda { |mode| I18n.t("admin.settings.registrations_mode.modes.#{mode}") }
= f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, include_blank: false, label_method: ->(mode) { I18n.t("admin.settings.registrations_mode.modes.#{mode}") }
.fields-row__column.fields-row__column-6.fields-group
= f.input :require_invite_text, as: :boolean, wrapper: :with_label, disabled: !approved_registrations?