diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-10-02 18:11:46 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-10-02 18:46:28 +0200 |
commit | bfc539cfb4f040fcffac740b36791c26c2a74119 (patch) | |
tree | 6dcf45444eda50d6745bc3e2e05521d3b703250d /config/initializers/simple_form.rb | |
parent | 4500504ec2be89bdedaef27bbf1cf82f77483ccd (diff) |
Revert "Change "Allow trends without prior review" setting to include statuses (#17977)"
This reverts commit 546672e292dc3218e996048464c4c52e5d00f766.
Diffstat (limited to 'config/initializers/simple_form.rb')
-rw-r--r-- | config/initializers/simple_form.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb index 92cffc5a2..3a2097d2f 100644 --- a/config/initializers/simple_form.rb +++ b/config/initializers/simple_form.rb @@ -11,10 +11,7 @@ end module RecommendedComponent def recommended(_wrapper_options = nil) return unless options[:recommended] - - key = options[:recommended].is_a?(Symbol) ? options[:recommended] : :recommended - options[:label_text] = ->(raw_label_text, _required_label_text, _label_present) { safe_join([raw_label_text, ' ', content_tag(:span, I18n.t(key, scope: 'simple_form'), class: key)]) } - + options[:label_text] = ->(raw_label_text, _required_label_text, _label_present) { safe_join([raw_label_text, ' ', content_tag(:span, I18n.t('simple_form.recommended'), class: 'recommended')]) } nil end end |