Skip to content

Instantly share code, notes, and snippets.

@modsognir
Created June 4, 2013 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modsognir/5704902 to your computer and use it in GitHub Desktop.
Save modsognir/5704902 to your computer and use it in GitHub Desktop.
def routes(engine_name)
require 'rails/application/route_inspector'
puts Rails::Application::RouteInspector.new.format("#{engine_name}::Engine".constantize.routes.routes, nil)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment