Module: Para::Breadcrumbs::Controller::ViewHelper

Defined in:
lib/para/breadcrumbs/controller.rb

Instance Method Summary collapse

Instance Method Details

#render_breadcrumbsObject

Render the breadcrumbs view depending wether it is in the admin or in front, allowing the front view to be overriden in app



46
47
48
49
# File 'lib/para/breadcrumbs/controller.rb', line 46

def render_breadcrumbs
  prefix = controller.admin? ? 'para/admin/' : ''
  render partial: "#{ prefix }shared/breadcrumbs"
end