Class: FocusedController::RouteMapper
- Inherits:
-
Object
- Object
- FocusedController::RouteMapper
- Defined in:
- lib/focused_controller/route_mapper.rb
Overview
The monkey-patching in this file makes me sadface but I can’t see another way ;(
Instance Method Summary collapse
-
#initialize(scope, options) ⇒ RouteMapper
constructor
A new instance of RouteMapper.
- #options ⇒ Object
Constructor Details
#initialize(scope, options) ⇒ RouteMapper
Returns a new instance of RouteMapper.
8 9 10 |
# File 'lib/focused_controller/route_mapper.rb', line 8 def initialize(scope, ) @scope, @options = scope, end |
Instance Method Details
#options ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/focused_controller/route_mapper.rb', line 12 def = @options.dup if to = to_option [:action] = FocusedController.action_name [:controller] = to.underscore .delete :to end end |