annotate config/application.rb @ 1465:ab8bd24eeb65 bug_635

Close obsolete branch bug_635
author Chris Cannam
date Fri, 19 Jul 2013 12:13:20 +0100
parents 433d4f72a19b
children 2436fda71fa9 261b3d9a4903
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 # Activate observers that should always be running.
Chris@1115 26 config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
Chris@1115 27
Chris@1115 28 config.active_record.store_full_sti_class = true
Chris@1115 29 config.active_record.default_timezone = :local
Chris@1115 30
Chris@1115 31 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
Chris@1115 32 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
Chris@1115 33 # config.time_zone = 'Central Time (US & Canada)'
Chris@1115 34
Chris@1115 35 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
Chris@1115 36 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
Chris@1115 37 # config.i18n.default_locale = :de
Chris@1115 38
Chris@1115 39 # Configure the default encoding used in templates for Ruby 1.9.
Chris@1115 40 config.encoding = "utf-8"
Chris@1115 41
Chris@1115 42 # Configure sensitive parameters which will be filtered from the log file.
Chris@1115 43 config.filter_parameters += [:password]
Chris@1115 44
Chris@1115 45 # Enable the asset pipeline
Chris@1115 46 config.assets.enabled = false
Chris@1115 47
Chris@1115 48 # Version of your assets, change this if you want to expire all your assets
Chris@1115 49 config.assets.version = '1.0'
Chris@1115 50
Chris@1115 51 config.action_mailer.perform_deliveries = false
Chris@1115 52
Chris@1115 53 # Do not include all helpers
Chris@1115 54 config.action_controller.include_all_helpers = false
Chris@1115 55
Chris@1115 56 config.session_store :cookie_store, :key => '_redmine_session'
Chris@1115 57
Chris@1115 58 if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@1115 59 instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@1115 60 end
Chris@1115 61 end
Chris@1115 62 end