Skip to content

Commit

Permalink
Fix deprecation warning when defining custom input
Browse files Browse the repository at this point in the history
Since heartcombo/simple_form#997,
custom input adapters must accept a hash of wrapper options
  • Loading branch information
c-lliope committed Feb 21, 2015
1 parent 6a1fbce commit 026f13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/inputs/array_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 026f13d

Please sign in to comment.