Created
February 3, 2020 20:21
-
-
Save GuilleLeopold/1a47ed22245f7de8b2583ee67594f251 to your computer and use it in GitHub Desktop.
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
Dir.glob(File.expand_path('../engines/*', __dir__)).each do |path| | |
engine = File.basename(path) | |
mount engine.classify.constantize::Engine, at: '/' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment