##// END OF EJS Templates
Config variable must be set (#21058)....
Jean-Philippe Lang -
r14354:409cfcfccb04
parent child
Show More
@@ -1,78 +1,81
1 1 require File.expand_path('../boot', __FILE__)
2 2
3 3 require 'rails/all'
4 4
5 5 Bundler.require(*Rails.groups)
6 6
7 7 module RedmineApp
8 8 class Application < Rails::Application
9 9 # Settings in config/environments/* take precedence over those specified here.
10 10 # Application configuration should go into files in config/initializers
11 11 # -- all .rb files in that directory are automatically loaded.
12 12
13 13 # Custom directories with classes and modules you want to be autoloadable.
14 14 config.autoload_paths += %W(#{config.root}/lib)
15 15
16 16 # Only load the plugins named here, in the order given (default is alphabetical).
17 17 # :all can be used as a placeholder for all plugins not explicitly named.
18 18 # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
19 19
20 20 config.active_record.store_full_sti_class = true
21 21 config.active_record.default_timezone = :local
22 22
23 23 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
24 24 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
25 25 # config.time_zone = 'Central Time (US & Canada)'
26 26
27 27 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
28 28 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
29 29 # config.i18n.default_locale = :de
30 30
31 31 I18n.enforce_available_locales = true
32 32
33 33 # Configure the default encoding used in templates for Ruby 1.9.
34 34 config.encoding = "utf-8"
35 35
36 36 # Configure sensitive parameters which will be filtered from the log file.
37 37 config.filter_parameters += [:password]
38 38
39 39 # Enable the asset pipeline
40 40 config.assets.enabled = false
41 41
42 42 # Version of your assets, change this if you want to expire all your assets
43 43 config.assets.version = '1.0'
44 44
45 45 config.action_mailer.perform_deliveries = false
46 46
47 47 # Do not include all helpers
48 48 config.action_controller.include_all_helpers = false
49 49
50 50 # Do not supress errors in after_rollback and after_commit callbacks
51 51 config.active_record.raise_in_transactional_callbacks = true
52 52
53 53 # XML parameter parser removed from core in Rails 4.0
54 54 # and extracted to actionpack-xml_parser gem
55 55 config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser
56 56
57 57 # Sets the Content-Length header on responses with fixed-length bodies
58 58 config.middleware.use Rack::ContentLength
59 59
60 # Verify validity of user sessions
61 config.redmine_verify_sessions = true
62
60 63 # Specific cache for search results, the default file store cache is not
61 64 # a good option as it could grow fast. A memory store (32MB max) is used
62 65 # as the default. If you're running multiple server processes, it's
63 66 # recommended to switch to a shared cache store (eg. mem_cache_store).
64 67 # See http://guides.rubyonrails.org/caching_with_rails.html#cache-stores
65 68 # for more options (same options as config.cache_store).
66 69 config.redmine_search_cache_store = :memory_store
67 70
68 71 # Configure log level here so that additional environment file
69 72 # can change it (environments/ENV.rb would take precedence over it)
70 73 config.log_level = Rails.env.production? ? :info : :debug
71 74
72 75 config.session_store :cookie_store, :key => '_redmine_session'
73 76
74 77 if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
75 78 instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
76 79 end
77 80 end
78 81 end
General Comments 0
You need to be logged in to leave comments. Login now