Created
October 22, 2012 20:56
-
-
Save kazpsp/3934211 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model | |
scope :sort_by_client_name_asc, order('client_name ASC') | |
scope :sort_by_client_name_desc, order('client_name DESC') | |
View | |
sort_link @search, :sort_by_custom_name_asc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment