Skip to content

Instantly share code, notes, and snippets.

@chadwpry
Created October 1, 2008 19:54
Show Gist options
  • Save chadwpry/14171 to your computer and use it in GitHub Desktop.
Save chadwpry/14171 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
...
define_index do
indexes [:first_name, :last_name], :as => :name, :sortable => true
indexes :email, :sortable => true
has created_at, updated_at
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment