Module: Para::Breadcrumbs::Controller::ViewHelper
- Defined in:
- lib/para/breadcrumbs/controller.rb
Instance Method Summary collapse
-
#render_breadcrumbs ⇒ Object
Render the breadcrumbs view depending wether it is in the admin or in front, allowing the front view to be overriden in app.
Instance Method Details
#render_breadcrumbs ⇒ Object
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 prefix = controller.admin? ? 'para/admin/' : '' render partial: "#{ prefix }shared/breadcrumbs" end |