Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement