Module: Lcms::Engine::PathHelper

Included in:
Admin::AdminController, Admin::DocumentsController, Admin::MaterialsController
Defined in:
app/helpers/lcms/engine/path_helper.rb

Instance Method Summary collapse

Instance Method Details

#dynamic_document_path(*args) ⇒ Object



12
13
14
# File 'app/helpers/lcms/engine/path_helper.rb', line 12

def dynamic_document_path(*args)
  host_engine_path(:document_path, *args).presence || main_app.document_path(*args)
end

#dynamic_material_path(*args) ⇒ Object



16
17
18
# File 'app/helpers/lcms/engine/path_helper.rb', line 16

def dynamic_material_path(*args)
  host_engine_path(:material_path, *args).presence || main_app.material_path(*args)
end

#dynamic_path(path, *args) ⇒ Object



8
9
10
# File 'app/helpers/lcms/engine/path_helper.rb', line 8

def dynamic_path(path, *args)
  host_engine_path(path, *args).presence || main_app.send(path.to_sym, *args)
end