Chris@1115: require File.expand_path('../boot', __FILE__) Chris@1115: Chris@1115: require 'rails/all' Chris@1115: Chris@1115: if defined?(Bundler) Chris@1115: # If you precompile assets before deploying to production, use this line Chris@1115: Bundler.require(*Rails.groups(:assets => %w(development test))) Chris@1115: # If you want your assets lazily compiled in production, use this line Chris@1115: # Bundler.require(:default, :assets, Rails.env) Chris@1115: end Chris@1115: Chris@1115: module RedmineApp Chris@1115: class Application < Rails::Application Chris@1115: # Settings in config/environments/* take precedence over those specified here. Chris@1115: # Application configuration should go into files in config/initializers Chris@1115: # -- all .rb files in that directory are automatically loaded. Chris@1115: Chris@1115: # Custom directories with classes and modules you want to be autoloadable. Chris@1115: config.autoload_paths += %W(#{config.root}/lib) Chris@1115: Chris@1115: # Only load the plugins named here, in the order given (default is alphabetical). Chris@1115: # :all can be used as a placeholder for all plugins not explicitly named. Chris@1115: # config.plugins = [ :exception_notification, :ssl_requirement, :all ] Chris@1115: Chris@1115: config.active_record.store_full_sti_class = true Chris@1115: config.active_record.default_timezone = :local Chris@1115: Chris@1115: # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. Chris@1115: # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. Chris@1115: # config.time_zone = 'Central Time (US & Canada)' Chris@1115: chris@1462: # Avoid deprecation warning (may want to change this later if future chris@1462: # Redmine updates are OK with it) chris@1462: config.i18n.enforce_available_locales = false chris@1462: Chris@1115: # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. Chris@1115: # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] Chris@1115: # config.i18n.default_locale = :de Chris@1115: Chris@1464: I18n.enforce_available_locales = false Chris@1464: Chris@1115: # Configure the default encoding used in templates for Ruby 1.9. Chris@1115: config.encoding = "utf-8" Chris@1115: Chris@1115: # Configure sensitive parameters which will be filtered from the log file. Chris@1115: config.filter_parameters += [:password] Chris@1115: Chris@1115: # Enable the asset pipeline Chris@1115: config.assets.enabled = false Chris@1115: Chris@1115: # Version of your assets, change this if you want to expire all your assets Chris@1115: config.assets.version = '1.0' Chris@1115: Chris@1115: config.action_mailer.perform_deliveries = false Chris@1115: Chris@1115: # Do not include all helpers Chris@1115: config.action_controller.include_all_helpers = false Chris@1115: Chris@1115: config.session_store :cookie_store, :key => '_redmine_session' Chris@1115: Chris@1115: if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) Chris@1115: instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) Chris@1115: end Chris@1115: end Chris@1115: end