Skip to content

Commit 6290e97

Browse files
committed
typo fix
1 parent ee13ac6 commit 6290e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails3-jquery-autocomplete.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def autocomplete(object, method, options = {})
2828

2929
define_method("autocomplete_#{object}_#{method}") do
3030
unless params[:term] && params[:term].empty?
31-
items = Category.where("this.name.match(/#{params[:term]}/i)").limit(10).asc("#{method}")
31+
items = Category.where("this.name.match(/#{params[:term]}/i)").limit(10).asc(method)
3232
else
3333
items = {}
3434
end

0 commit comments

Comments
 (0)