Class: LcpRuby::Presenter::BreadcrumbPathHelper
- Inherits:
-
Object
- Object
- LcpRuby::Presenter::BreadcrumbPathHelper
- Defined in:
- lib/lcp_ruby/presenter/breadcrumb_path_helper.rb
Instance Method Summary collapse
-
#initialize(engine_routes) ⇒ BreadcrumbPathHelper
constructor
A new instance of BreadcrumbPathHelper.
- #resource_path(slug, id) ⇒ Object
- #resources_path(slug) ⇒ Object
Constructor Details
#initialize(engine_routes) ⇒ BreadcrumbPathHelper
Returns a new instance of BreadcrumbPathHelper.
4 5 6 |
# File 'lib/lcp_ruby/presenter/breadcrumb_path_helper.rb', line 4 def initialize(engine_routes) @routes = engine_routes end |
Instance Method Details
#resource_path(slug, id) ⇒ Object
12 13 14 |
# File 'lib/lcp_ruby/presenter/breadcrumb_path_helper.rb', line 12 def resource_path(slug, id) @routes.resource_path(lcp_slug: slug, id: id) end |
#resources_path(slug) ⇒ Object
8 9 10 |
# File 'lib/lcp_ruby/presenter/breadcrumb_path_helper.rb', line 8 def resources_path(slug) @routes.resources_path(lcp_slug: slug) end |