Skip to content

Commit

Permalink
Making name field sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Sep 29, 2008
1 parent f63922e commit b6fce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/contact.rb
Expand Up @@ -2,7 +2,7 @@ class Contact < ActiveRecord::Base
belongs_to :state

define_index do
indexes [first_name, last_name], :as => :name
indexes [first_name, last_name], :as => :name, :sortable => true
indexes street_address, city, country, postal_code

has state_id
Expand Down

0 comments on commit b6fce2d

Please sign in to comment.