Class: Lcms::Engine::CurriculumPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/lcms/engine/curriculum_presenter.rb

Overview

Simple presenter for Curriculum (resources tree)

Constant Summary collapse

UNIT_LEVEL =
Lcms::Engine::Resource.hierarchy.index(:unit)

Instance Method Summary collapse

Instance Method Details

#editor_propsObject



9
10
11
12
13
14
# File 'app/presenters/lcms/engine/curriculum_presenter.rb', line 9

def editor_props
  @editor_props ||= {
    tree: jstree_data,
    form_url: routes.admin_curriculum_path
  }
end