application.rb 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. require File.expand_path('../boot', __FILE__)
  10. require 'rails/all'
  11. # Assets should be precompiled for production (so we don't need the gems loaded then)
  12. Bundler.require(*Rails.groups(assets: %w(development test)))
  13. module DepotClient
  14. class Application < Rails::Application
  15. # Settings in config/environments/* take precedence over those specified here.
  16. # Application configuration should go into files in config/initializers
  17. # -- all .rb files in that directory are automatically loaded.
  18. # Custom directories with classes and modules you want to be autoloadable.
  19. # config.autoload_paths += %W(#{config.root}/extras)
  20. # Configure sensitive parameters which will be filtered from the log file.
  21. config.filter_parameters += [:password]
  22. # Use SQL instead of Active Record's schema dumper when creating the database.
  23. # This is necessary if your schema can't be completely dumped by the schema dumper,
  24. # like if you have constraints or database-specific column types.
  25. # config.active_record.schema_format = :sql
  26. # Enable the asset pipeline.
  27. config.assets.enabled = true
  28. # Version of your assets, change this if you want to expire all your assets.
  29. config.assets.version = '1.0'
  30. end
  31. end