development.rb 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. #---
  10. # Excerpted from "Agile Web Development with Rails, 4rd Ed.",
  11. # published by The Pragmatic Bookshelf.
  12. # Copyrights apply to this code. It may not be used to create training material,
  13. # courses, books, articles, and the like. Contact us if you are in doubt.
  14. # We make no guarantees that this code is fit for any purpose.
  15. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  16. #---
  17. Depot::Application.configure do
  18. # Settings specified here will take precedence over those in config/application.rb
  19. # In the development environment your application's code is reloaded on
  20. # every request. This slows down response time but is perfect for development
  21. # since you don't have to restart the webserver when you make code changes.
  22. config.cache_classes = false
  23. # Log error messages when you accidentally call methods on nil.
  24. config.whiny_nils = true
  25. # Show full error reports and disable caching
  26. config.consider_all_requests_local = true
  27. config.action_view.debug_rjs = true
  28. config.action_controller.perform_caching = false
  29. # Don't care if the mailer can't send
  30. config.action_mailer.raise_delivery_errors = false
  31. # Print deprecation notices to the Rails logger
  32. config.active_support.deprecation = :log
  33. # Only use best-standards-support built into browsers
  34. config.action_dispatch.best_standards_support = :builtin
  35. end