Skip to content

Commit

Permalink
Remove simple_form deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoa committed Feb 8, 2015
1 parent 3f84b2f commit 7bc8830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rails4-autocomplete/simple_form_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def rewrite_autocomplete_option
class AutocompleteInput < Base
include Autocomplete

def input
def input(wrapper_options)
@builder.autocomplete_field(
attribute_name,
options[:url],
Expand All @@ -37,7 +37,7 @@ def has_placeholder?
class AutocompleteCollectionInput < CollectionInput
include Autocomplete

def input
def input(wrapper_options)
# http://www.codeofficer.com/blog/entry/form_builders_in_rails_discovering_field_names_and_ids_for_javascript/
hidden_id = "#{object_name}_#{attribute_name}_hidden".gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").sub(/_$/, "")
id_element = options[:id_element]
Expand Down

0 comments on commit 7bc8830

Please sign in to comment.