Sha256: c863faf69b424ad463a064f71510ddc5ff32914a8bea3a8f89a9fa0b7ee00cfc
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
require 'rails/application/route_inspector' require 'sextant/engine' module Sextant def self.format_routes(routes = all_routes) inspector = Rails::Application::RouteInspector.new inspector.format(routes, ENV['CONTROLLER']).join "\n" end def self.all_routes Rails.application.reload_routes! Rails.application.routes.routes end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sextant-0.1.2 | lib/sextant.rb |
sextant-0.1.1 | lib/sextant.rb |
sextant-0.1.0 | lib/sextant.rb |