Skip to content

Commit

Permalink
Edited lib/rails3-jquery-autocomplete/orm/active_record.rb via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
slash4 authored and gabrielrios committed Mar 20, 2012
1 parent e8e1e61 commit 3f65009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails3-jquery-autocomplete/orm/active_record.rb
Expand Up @@ -5,7 +5,7 @@ def get_autocomplete_order(method, options, model=nil)
order = options[:order]

table_prefix = model ? "#{model.table_name}." : ""
order || "#{table_prefix}#{method} ASC"
order || "#{table_prefix}#{method.first} ASC"
end

def get_autocomplete_items(parameters)
Expand Down

0 comments on commit 3f65009

Please sign in to comment.