Skip to content

Instantly share code, notes, and snippets.

@abepetrillo
Created June 18, 2019 18:26
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 abepetrillo/20e4aecabe33fd4c7f58deda9ca9faff to your computer and use it in GitHub Desktop.
Save abepetrillo/20e4aecabe33fd4c7f58deda9ca9faff to your computer and use it in GitHub Desktop.
Clean up your routes file
Rails.application.routes.routes.map {|r| r.defaults[:controller] }.compact.reject {|r| r.include? 'devise' }.map(&:camelize).constantize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment