Created
June 18, 2019 18:26
-
-
Save abepetrillo/20e4aecabe33fd4c7f58deda9ca9faff to your computer and use it in GitHub Desktop.
Clean up your routes file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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