Class: Workarea::Admin::PageViewModel

Inherits:
ApplicationViewModel
  • Object
show all
Includes:
CommentableViewModel, ContentableViewModel
Defined in:
app/view_models/workarea/admin/page_view_model.rb

Instance Method Summary collapse

Methods included from ContentableViewModel

#content

Methods included from CommentableViewModel

#comment_count, #comments, #has_comments?, #new_comments_for?, #subscribed_users

Instance Method Details



11
12
13
# File 'app/view_models/workarea/admin/page_view_model.rb', line 11

def breadcrumbs
  @breadcrumbs ||= Navigation::Breadcrumbs.new(model)
end

#timelineObject



7
8
9
# File 'app/view_models/workarea/admin/page_view_model.rb', line 7

def timeline
  @timeline ||= TimelineViewModel.new(model)
end