remove unnecessary bloat
This commit is contained in:
parent
2f6d638cd1
commit
6922f31bc5
@ -1,7 +1,5 @@
|
|||||||
module FavoritesHelper
|
module FavoritesHelper
|
||||||
def sortable(title, column)
|
def sortable(title, column)
|
||||||
title ||= column.titelize
|
|
||||||
puts title
|
|
||||||
direction = column == sort_column && sort_direction == 'asc' ? 'desc' : 'asc'
|
direction = column == sort_column && sort_direction == 'asc' ? 'desc' : 'asc'
|
||||||
link_to title, :sort => column, :direction => direction
|
link_to title, :sort => column, :direction => direction
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user