Skip to content

Commit

Permalink
Correct direction for BoardSerializer.default_sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Parrish committed Sep 28, 2015
1 parent c92c0f7 commit 24dd11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/board_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BoardSerializer
can_filter_by :subject_default
can_sort_by :last_comment_created_at
embed_attributes_from :project
self.default_sort = 'last_comment_created_at'
self.default_sort = '-last_comment_created_at'
self.preloads = [:latest_discussion]
self.eager_loads = [:project, :parent]

Expand Down

0 comments on commit 24dd11a

Please sign in to comment.