Module: PassionView::Routable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Card::Base, Resourceful
- Defined in:
- lib/passion_view/routable.rb
Overview
Routable exposes contextualized routes in an object
Defined Under Namespace
Classes: RouteContext
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
Instance Method Summary collapse
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
4 5 6 |
# File 'lib/passion_view/routable.rb', line 4 def controller @controller end |
Instance Method Details
#contextualize_routes(controller) ⇒ Object
6 7 8 9 |
# File 'lib/passion_view/routable.rb', line 6 def contextualize_routes(controller) @controller = controller routes.contextualize(controller) end |
#routes ⇒ Object
11 12 13 |
# File 'lib/passion_view/routable.rb', line 11 def routes @_routes_context ||= RouteContext.new end |