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

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