annotate config/application.rb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents 51364c0cd58f
children
rev   line source
Chris@1115 1 require File.expand_path('../boot', __FILE__)
Chris@1115 2
Chris@1115 3 require 'rails/all'
Chris@1115 4
Chris@1115 5 if defined?(Bundler)
Chris@1115 6 # If you precompile assets before deploying to production, use this line
Chris@1115 7 Bundler.require(*Rails.groups(:assets => %w(development test)))
Chris@1115 8 # If you want your assets lazily compiled in production, use this line
Chris@1115 9 # Bundler.require(:default, :assets, Rails.env)
Chris@1115 10 end
Chris@1115 11
Chris@1115 12 module RedmineApp
Chris@1115 13 class Application < Rails::Application
Chris@1115 14 # Settings in config/environments/* take precedence over those specified here.
Chris@1115 15 # Application configuration should go into files in config/initializers
Chris@1115 16 # -- all .rb files in that directory are automatically loaded.
Chris@1115 17
Chris@1115 18 # Custom directories with classes and modules you want to be autoloadable.
Chris@1115 19 config.autoload_paths += %W(#{config.root}/lib)
Chris@1115 20
Chris@1115 21 # Only load the plugins named here, in the order given (default is alphabetical).
Chris@1115 22 # :all can be used as a placeholder for all plugins not explicitly named.
Chris@1115 23 # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
Chris@1115 24
Chris@1115 25 config.active_record.store_full_sti_class = true
Chris@1115 26 config.active_record.default_timezone = :local
Chris@1115 27
Chris@1115 28 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
Chris@1115 29 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
Chris@1115 30 # config.time_zone = 'Central Time (US & Canada)'
Chris@1115 31
chris@1462 32 # Avoid deprecation warning (may want to change this later if future
chris@1462 33 # Redmine updates are OK with it)
chris@1462 34 config.i18n.enforce_available_locales = false
chris@1462 35
Chris@1115 36 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
Chris@1115 37 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
Chris@1115 38 # config.i18n.default_locale = :de
Chris@1115 39
Chris@1464 40 I18n.enforce_available_locales = false
Chris@1464 41
Chris@1115 42 # Configure the default encoding used in templates for Ruby 1.9.
Chris@1115 43 config.encoding = "utf-8"
Chris@1115 44
Chris@1115 45 # Configure sensitive parameters which will be filtered from the log file.
Chris@1115 46 config.filter_parameters += [:password]
Chris@1115 47
Chris@1115 48 # Enable the asset pipeline
Chris@1115 49 config.assets.enabled = false
Chris@1115 50
Chris@1115 51 # Version of your assets, change this if you want to expire all your assets
Chris@1115 52 config.assets.version = '1.0'
Chris@1115 53
Chris@1115 54 config.action_mailer.perform_deliveries = false
Chris@1115 55
Chris@1115 56 # Do not include all helpers
Chris@1115 57 config.action_controller.include_all_helpers = false
Chris@1115 58
Chris@1115 59 config.session_store :cookie_store, :key => '_redmine_session'
Chris@1115 60
Chris@1115 61 if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@1115 62 instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@1115 63 end
Chris@1115 64 end
Chris@1115 65 end