Module: Jets::Router::Route::Compat

Extended by:
Memoist
Included in:
Jets::Router::Route
Defined in:
lib/jets/router/route/compat.rb

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

Instance Method Details

#appObject



26
27
28
# File 'lib/jets/router/route/compat.rb', line 26

def app
  App.new(self)
end

#internalObject



41
42
43
# File 'lib/jets/router/route/compat.rb', line 41

def internal
  !!@options[:internal]
end

#nameObject

Rails interface method for ActionDispatch::Routing::RouteWrapper



32
33
34
# File 'lib/jets/router/route/compat.rb', line 32

def name
  as || ''
end

#verbObject

Rails interface method for ActionDispatch::Routing::RouteWrapper



37
38
39
# File 'lib/jets/router/route/compat.rb', line 37

def verb
  http_method
end