Module: Course::Discussion::Post::OrderingConcern

Extended by:
ActiveSupport::Concern
Included in:
Course::Discussion::Post, Topic::PostsConcern
Defined in:
app/models/concerns/course/discussion/post/ordering_concern.rb

Defined Under Namespace

Classes: PostSort

Instance Method Summary collapse

Instance Method Details

#ordered_topologicallyEnumerable

Returns a set of recursive arrays indicating the parent-child relationships of posts.

Returns:

  • (Enumerable)

49
50
51
# File 'app/models/concerns/course/discussion/post/ordering_concern.rb', line 49

def ordered_topologically
  PostSort.new(self)
end