-
-
Save anonymous/9d8b54ee76bdfaebb11b to your computer and use it in GitHub Desktop.
This file contains 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
# app.rb | |
class IDontLikeMRIException < Exception; end | |
Dir[base_path + 'components/*.routes.rb'].each do |file| | |
begin | |
require file | |
rescue IDontLikeMRIException | |
end | |
end | |
# components/pdf.routes.rb | |
raise IDontLikeMRIException if RUBY_PLATFORM == 'jruby' | |
# ... routes code | |
# components/session.routes.rb | |
# ... routes code | |
# components/account.routes.rb | |
# ... routes code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment