Fix Style/Lambda
cop (#28378)
This commit is contained in:
parent
1ee8d1e50e
commit
e5717c9bc6
3 changed files with 6 additions and 14 deletions
|
@ -164,7 +164,7 @@ SimpleForm.setup do |config|
|
|||
# config.item_wrapper_class = nil
|
||||
|
||||
# How the label text should be generated altogether with the required text.
|
||||
config.label_text = lambda { |label, required, _explicit_label| "#{label} #{required}" }
|
||||
config.label_text = ->(label, required, _explicit_label) { "#{label} #{required}" }
|
||||
|
||||
# You can define the class to use on all labels. Default is nil.
|
||||
# config.label_class = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue