annotate .svn/pristine/e3/e3f0720262bf4826660007be5e4e0b8a5627eed0.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

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