Skip to content

Commit

Permalink
add doc for search array
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacs committed Jul 1, 2009
1 parent 604dd9e commit c2863ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/sortable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ module ClassMethods
#
# and the table is now sortable by a related object's column and is the default sort value for the table.
#
# Search. You can specify what columns are searchable on your objects as follows:
# :search_array => ['cablecar_users.username', 'cablecar_users.name']
#
# Now search queries will only search username and name for users. By default search is enabled for all columns
# that are being displayed in the table. This allows you to expand or constrain those values.
#
def sortable_table(klass, options={})
@@sortable_table_options ||={}

Expand Down

0 comments on commit c2863ec

Please sign in to comment.