application.rb 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. require File.expand_path('../boot', __FILE__)
  18. class Routing < Rails::Application
  19. # Settings in config/environments/* take precedence over those specified here.
  20. # Application configuration should go into files in config/initializers
  21. # -- all .rb files in that directory are automatically loaded.
  22. # Add additional load paths for your own custom dirs
  23. # config.load_paths += %W( #{root}/extras )
  24. # Only load the plugins named here, in the order given (default is alphabetical).
  25. # :all can be used as a placeholder for all plugins not explicitly named
  26. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  27. # Skip frameworks you're not going to use. To use Rails without a database,
  28. # you must remove the Active Record framework.
  29. # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
  30. # Activate observers that should always be running
  31. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  32. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  33. # Run "rake -D time" for a list of tasks for finding time zone names.
  34. config.time_zone = 'UTC'
  35. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  36. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  37. # config.i18n.default_locale = :de
  38. # Configure generators values. Many other options are available, be sure to
  39. # check the documentation.
  40. # config.generators do |g|
  41. # g.orm :active_record
  42. # g.template_engine :erb
  43. # g.test_framework :test_unit, :fixture => true
  44. # end
  45. end