Module: Utopia::Controller::Rewrite::ClassMethods
- Defined in:
- lib/utopia/controller/rewrite.rb
Overview
Exposed to the controller class.
Instance Method Summary collapse
Instance Method Details
#rewrite ⇒ Object
87 88 89 |
# File 'lib/utopia/controller/rewrite.rb', line 87 def rewrite @rewriter ||= Rewriter.new end |
#rewrite_request(controller, request, path) ⇒ Object
91 92 93 94 95 |
# File 'lib/utopia/controller/rewrite.rb', line 91 def rewrite_request(controller, request, path) if @rewriter @rewriter.call(controller, request, path) end end |