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.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. require File.expand_path('../boot', __FILE__)
  2. %w(
  3. action_controller
  4. action_view
  5. active_job
  6. rails/test_unit
  7. sprockets
  8. ).each do |framework|
  9. begin
  10. require "#{framework}/railtie"
  11. rescue LoadError
  12. end
  13. end
  14. # Require the gems listed in Gemfile, including any gems
  15. # you've limited to :test, :development, or :production.
  16. groups = Rails.groups
  17. unless Rails.env == 'production'
  18. groups << :assets
  19. Rails.env = 'production' if Rails.env == 'staging'
  20. end
  21. Bundler.require(*groups)
  22. module CryptcheckRails
  23. class Application < Rails::Application
  24. # Settings in config/environments/* take precedence over those specified here.
  25. # Application configuration should go into files in config/initializers
  26. # -- all .rb files in that directory are automatically loaded.
  27. config.autoload_paths += %W(#{config.root}/lib)
  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.refresh_delay = 1.hour
  35. end
  36. end