Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning when defining custom input #19

Merged
merged 1 commit into from
Feb 21, 2015
Merged

Conversation

c-lliope
Copy link

Since heartcombo/simple_form#997,
custom input adapters must accept a hash of wrapper options

@@ -4,7 +4,7 @@ class ArrayInput < SimpleForm::Inputs::StringInput

TEXT_FIELD_CLASSES = "text optional array-element"

def input
def input(wrapper_options)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused method argument - wrapper_options. If it's necessary, use _ or _wrapper_options as an argument name to indicate that it won't be used. You can also write as input(*) if you want the method to accept any arguments but don't care about them.

Since heartcombo/simple_form#997,
custom input adapters must accept a hash of wrapper options
@c-lliope c-lliope merged commit 677e5c1 into master Feb 21, 2015
@c-lliope c-lliope deleted the deprecation branch February 21, 2015 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants