lib/snaptable/constructor/sortable.rb in snaptable-0.8.6 vs lib/snaptable/constructor/sortable.rb in snaptable-0.9.0
- old
+ new
@@ -2,10 +2,10 @@
module Constructor
module Sortable
def sortable(column)
if model.reflect_on_association(column.gsub /_id/, '').nil?
- view_context.link_to({sort: column, direction: direction(column), query: params[:query], page: page}, {remote: true, class: css_class(column)}) do
+ view_context.link_to({sort: column, direction: direction(column), query: params[:query], page: page, partial: @buttons}, {remote: true, class: css_class(column)}) do
model.human_attribute_name(column)
end
else
model.human_attribute_name(column)
end
\ No newline at end of file