Class: Remarkable::ActionController::Matchers::RouteMatcher
- Inherits:
-
Base
- Object
- Base
- Remarkable::ActionController::Matchers::RouteMatcher
- Defined in:
- lib/remarkable_rails/action_controller/matchers/route_matcher.rb
Overview
Do not inherit from ActionController::Base since it don’t need all macro stubs behavior.
Instance Method Summary collapse
Instance Method Details
#controller ⇒ Object
22 23 24 |
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 22 def controller @controller ||= @spec.controller if @spec.respond_to?(:controller) end |
#request ⇒ Object
26 27 28 |
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 26 def request controller.request if controller end |