Skip to content

Commit

Permalink
Allow BoardSerializer to sort by id
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Parrish committed May 17, 2016
1 parent e61890c commit 6a8c129
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 @@ -5,7 +5,7 @@ class BoardSerializer
all_attributes
attribute :latest_discussion
can_filter_by :subject_default
can_sort_by :position, :last_comment_created_at
can_sort_by :id, :position, :last_comment_created_at
embed_attributes_from :project
self.default_sort = 'position,-last_comment_created_at'
self.preloads = [:latest_discussion]
Expand Down

0 comments on commit 6a8c129

Please sign in to comment.