Sha256: e12e340c5af55ee8e490429aea48b203b98a1552b2e8a67914c86a9f808e7153
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
require 'rails/application/route_inspector' require 'sextant/engine' require 'rails/routes' module Sextant def self.format_routes(routes = all_routes) # ActionDispatch::Routing::RoutesInspector.new.collect_routes(_routes.routes) inspector = Rails::Application::RouteInspector.new inspector.collect_routes(routes) end def self.all_routes Rails.application.reload_routes! Rails.application.routes.routes end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sextant-0.2.3 | lib/sextant.rb |
sextant-0.2.2 | lib/sextant.rb |
sextant-0.2.1 | lib/sextant.rb |
sextant-0.2.0 | lib/sextant.rb |