summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/application_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 9334f7d..b74fa27 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -21,7 +21,8 @@ module ApplicationHelper
def sortable(column, title)
link_class = (column.to_s == sort_column.to_s) ? "sort_descending #{sort_descending}" : nil
- link_to title, {:sort => column, :desc => !!(!sort_descending && column), :type => @type}, {:class => link_class}
+ desc = (column.to_s == sort_column.to_s) ? !!(!sort_descending && column) : nil
+ link_to title, {:sort => column, :desc => desc, :type => @type}, {:class => link_class}
end
end