From 026f13d8d8871296948f20e6f910220715594228 Mon Sep 17 00:00:00 2001 From: Grayson Wright Date: Sat, 21 Feb 2015 12:35:02 -0800 Subject: [PATCH] Fix deprecation warning when defining custom input Since https://github.com/plataformatec/simple_form/pull/997, custom input adapters must accept a hash of wrapper options --- app/inputs/array_input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inputs/array_input.rb b/app/inputs/array_input.rb index 90cf542c7..0d16311b5 100644 --- a/app/inputs/array_input.rb +++ b/app/inputs/array_input.rb @@ -4,7 +4,7 @@ class ArrayInput < SimpleForm::Inputs::StringInput TEXT_FIELD_CLASSES = "text optional array-element" - def input + def input(_wrapper_options) input_html_options[:type] ||= input_type content_tag(:div, class: "array-input") do