Permalink
Browse files

Merge pull request #77 from leobossmann/master

fix for issue #69, :id_element attribute not working
  • Loading branch information...
2 parents ef7bf3f + d509104 commit 24fa9269fd51c2307e024415ace85a79f4de34bf @dabit dabit committed Aug 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/rails3-jquery-autocomplete/form_helper.rb
@@ -34,6 +34,7 @@ def autocomplete_field_tag(name, value, source, options ={})
private
def rewrite_autocomplete_option(options)
options["data-update-elements"] = JSON.generate(options.delete :update_elements) if options[:update_elements]
+ options["data-id-element"] = options.delete :id_element if options[:id_element]
options
end
end

0 comments on commit 24fa926

Please sign in to comment.