You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application.rb 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. require File.expand_path('../boot', __FILE__)
  2. require 'rails'
  3. %w(
  4. action_controller
  5. action_view
  6. active_job
  7. active_model
  8. rails/test_unit
  9. sprockets
  10. ).each do |framework|
  11. begin
  12. require "#{framework}/railtie"
  13. rescue LoadError
  14. end
  15. end
  16. # Require the gems listed in Gemfile, including any gems
  17. # you've limited to :test, :development, or :production.
  18. groups = Rails.groups
  19. unless Rails.env == 'production'
  20. groups << :assets
  21. Rails.env = 'production' if Rails.env == 'staging'
  22. end
  23. Bundler.require(*groups)
  24. module CryptcheckRails
  25. class Application < Rails::Application
  26. # Settings in config/environments/* take precedence over those specified here.
  27. # Application configuration should go into files in config/initializers
  28. # -- all .rb files in that directory are automatically loaded.
  29. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  30. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  31. # config.time_zone = 'Central Time (US & Canada)'
  32. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  33. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  34. config.i18n.default_locale = :en
  35. config.i18n.available_locales = %i[en fr de]
  36. config.i18n.fallbacks = true
  37. config.action_controller.include_all_helpers = false
  38. config.refresh_delay = 1.hour
  39. end
  40. end