1
0

application.rb 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. require_relative 'boot'
  2. require 'rails/all'
  3. # Require the gems listed in Gemfile, including any gems
  4. # you've limited to :test, :development, or :production.
  5. Bundler.require(*Rails.groups)
  6. module Huginn
  7. class Application < Rails::Application
  8. Dotenv.overload File.expand_path('../../spec/env.test', __FILE__) if Rails.env.test?
  9. # Initialize configuration defaults for originally generated Rails version.
  10. config.load_defaults 5.2
  11. # Settings in config/environments/* take precedence over those specified here.
  12. # Application configuration should go into files in config/initializers
  13. # -- all .rb files in that directory are automatically loaded.
  14. # Custom directories with classes and modules you want to be autoloadable.
  15. config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/presenters #{config.root}/app/jobs)
  16. # Activate observers that should always be running.
  17. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  18. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  19. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  20. config.time_zone = ENV['TIMEZONE'].presence || "Pacific Time (US & Canada)"
  21. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  22. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  23. # config.i18n.default_locale = :de
  24. # Configure the default encoding used in templates for Ruby 1.9.
  25. config.encoding = "utf-8"
  26. # Enable escaping HTML in JSON.
  27. config.active_support.escape_html_entities_in_json = true
  28. # Use SQL instead of Active Record's schema dumper when creating the database.
  29. # This is necessary if your schema can't be completely dumped by the schema dumper,
  30. # like if you have constraints or database-specific column types
  31. # config.active_record.schema_format = :sql
  32. config.active_job.queue_adapter = :delayed_job
  33. end
  34. end