Skip to content

Commit

Permalink
Reorder BoardSerializer default search and sortable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Parrish committed Sep 28, 2015
1 parent 7c4fa39 commit 795c33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/serializers/board_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class BoardSerializer
attribute :latest_discussion
can_include :discussions, :parent, :sub_boards
can_filter_by :subject_default
can_sort_by :created_at
can_sort_by :last_comment_created_at
embed_attributes_from :project
self.default_sort = 'created_at'
self.default_sort = 'last_comment_created_at'
self.preloads = [:latest_discussion]
self.eager_loads = [:project, :parent]

Expand Down

0 comments on commit 795c33e

Please sign in to comment.