Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change formatter class in Rails 6 #53

Merged
merged 1 commit into from
Apr 2, 2019
Merged

Conversation

rjayroach
Copy link
Contributor

if Rails::VERSION::MAJOR < 6
inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, nil)
else
inspector.format(ActionDispatch::Routing::ConsoleFormatter::Sheet.new)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [84/80]

@@ -15,7 +15,11 @@ def routes
all_routes = Rails.application.routes.routes
require 'action_dispatch/routing/inspector'
inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes)
inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, nil)
if Rails::VERSION::MAJOR < 6
inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, nil)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [82/80]

@zhandao
Copy link
Owner

zhandao commented Apr 2, 2019

Thanks 😄

@zhandao zhandao merged commit 007edee into zhandao:master Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants