about summary refs log tree commit diff
path: root/config/initializers/simple_form.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-08-12 23:31:09 -0500
committerStarfall <us@starfall.systems>2020-08-13 14:28:18 -0500
commitcb4ea892f4796997cbf04415482b18fa9bb8055e (patch)
treecbf391fea5f469ce15aea89aaea299226232c7f3 /config/initializers/simple_form.rb
parent9819261a72506aab83ad38025280c09cdb63e9d2 (diff)
Remove all traces of 'recommended' settings
Diffstat (limited to 'config/initializers/simple_form.rb')
-rw-r--r--config/initializers/simple_form.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb
index 3dc48ef08..dcf6296fa 100644
--- a/config/initializers/simple_form.rb
+++ b/config/initializers/simple_form.rb
@@ -8,16 +8,7 @@ module AppendComponent
   end
 end
 
-module RecommendedComponent
-  def recommended(wrapper_options = nil)
-    return unless options[:recommended]
-    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
-
 SimpleForm.include_component(AppendComponent)
-SimpleForm.include_component(RecommendedComponent)
 
 SimpleForm.setup do |config|
   # Wrappers are used by the form builder to generate a
@@ -74,7 +65,6 @@ SimpleForm.setup do |config|
     b.use :html5
 
     b.wrapper tag: :div, class: :label_input do |ba|
-      ba.optional :recommended
       ba.use :label
 
       ba.wrapper tag: :div, class: :label_input__wrapper do |bb|