Module: Jets::Router::Route::Compat
Overview
Work in progress. Considering making Jets Route more compatiable with Rails Route. Then will be able to leverage Rails RouteWrapper for presenting the routes for /jets/info/routes. Ran into Route#path method that is a bit of work to make compatiable. Leaving this here for the future.
Defined Under Namespace
Classes: App
Instance Method Summary collapse
- #app ⇒ Object
- #internal ⇒ Object
-
#name ⇒ Object
Rails interface method for ActionDispatch::Routing::RouteWrapper.
-
#verb ⇒ Object
Rails interface method for ActionDispatch::Routing::RouteWrapper.
Instance Method Details
#internal ⇒ Object
41 42 43 |
# File 'lib/jets/router/route/compat.rb', line 41 def internal !!@options[:internal] end |
#name ⇒ Object
Rails interface method for ActionDispatch::Routing::RouteWrapper
32 33 34 |
# File 'lib/jets/router/route/compat.rb', line 32 def name as || '' end |
#verb ⇒ Object
Rails interface method for ActionDispatch::Routing::RouteWrapper
37 38 39 |
# File 'lib/jets/router/route/compat.rb', line 37 def verb http_method end |