annotate .svn/pristine/4a/4aed51d47566631f82dec657795de1c08f373cee.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

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