Permalink
Browse files

Making name field sortable

  • Loading branch information...
pat committed Sep 29, 2008
1 parent f63922e commit b6fce2d5dc1438be356a5e6ca6ecebcdd16eae6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/contact.rb
View
@@ -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

0 comments on commit b6fce2d

Please sign in to comment.