about summary refs log tree commit diff
path: root/config/initializers/simple_form.rb
diff options
context:
space:
mode:
authorShubhendra Singh Chauhan <withshubh@gmail.com>2021-02-01 01:56:09 +0530
committerGitHub <noreply@github.com>2021-01-31 21:26:09 +0100
commitc8d11b8bdb97a1a2f8aaf5deca5f1c6c7c0d2688 (patch)
tree3b3552d07969abc85bac41b1ac5ff7fb8e2573a7 /config/initializers/simple_form.rb
parent3efa0c54b6656fba189baab0857e60c0bc4f3c7d (diff)
Fixed code quality issues (#15541)
* Added .deepsource.toml

* Removed bad use of `alias`

* Fixed operand order in the binary expression

* Prefixed unused method arguments with an underscore

* Replaced the old OpenSSL algorithmic constants with the newer strings initializers.

* Removed unnecessary UTF-8 encoding comment
Diffstat (limited to 'config/initializers/simple_form.rb')
-rw-r--r--config/initializers/simple_form.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb
index 3dc48ef08..3a2097d2f 100644
--- a/config/initializers/simple_form.rb
+++ b/config/initializers/simple_form.rb
@@ -1,7 +1,7 @@
 # Use this setup block to configure all options available in SimpleForm.
 
 module AppendComponent
-  def append(wrapper_options = nil)
+  def append(_wrapper_options = nil)
     @append ||= begin
       options[:append].to_s.html_safe if options[:append].present?
     end
@@ -9,7 +9,7 @@ module AppendComponent
 end
 
 module RecommendedComponent
-  def recommended(wrapper_options = nil)
+  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