Advertisement
Guest User

Untitled

a guest
Dec 10th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # app.rb
  2. class IDontLikeMRIException < Exception; end
  3.  
  4. Dir[base_path + 'components/*.routes.rb'].each do |file|
  5. begin
  6. require file
  7. rescue IDontLikeMRIException
  8. end
  9. end
  10.  
  11. # components/pdf.routes.rb
  12. raise IDontLikeMRIException if RUBY_PLATFORM == 'jruby'
  13. # ... routes code
  14.  
  15. # components/session.routes.rb
  16. # ... routes code
  17.  
  18. # components/account.routes.rb
  19. # ... routes code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement