Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (36 sloc) 1.89 kb
d982fe2 Replace reopening the class with App.configure as an alias to class_eval
Carlhuda authored
1 <%= app_const %>.configure do
b59a8d4 Rohit Arondekar Application settings are specified in application.rb and not environment...
rohit authored
2 # Settings specified here will take precedence over those in config/application.rb
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
3
4 # Code is not reloaded between requests
5 config.cache_classes = true
6
7 # Full error reports are disabled and caching is turned on
ec4b18e José Valim Get rid of deprecation warnings on config/environments/*
josevalim authored
8 config.consider_all_requests_local = false
9 config.action_controller.perform_caching = true
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
10
2c0c4d7 Prem Sichanugrist Add `config.force_ssl` configuration which will load `Rack::SSL` middlew...
sikachu authored
11 # Disable Rails's static asset server (Apache or nginx will already do this)
12 config.serve_static_assets = false
56a86c2 Yehuda Katz Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
13
88cb890 Change compressor API so that plugins can register default compressors f...
tomhuda authored
14 # Compress JavaScripts and CSS
15 config.assets.compress = true
16
e84788e David Heinemeier Hansson Relevant options closer together
dhh authored
17 # Specifies the header that your server uses for sending files
8845ae6 Santiago Pastorino x_sendfile_header now defaults to nil and production.rb env file doesn't
spastorino authored
18 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
19 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
e84788e David Heinemeier Hansson Relevant options closer together
dhh authored
20
2c0c4d7 Prem Sichanugrist Add `config.force_ssl` configuration which will load `Rack::SSL` middlew...
sikachu authored
21 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
22 # config.force_ssl = true
56a86c2 Yehuda Katz Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
23
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
24 # See everything in the log (default is :info)
25 # config.log_level = :debug
26
27 # Use a different logger for distributed setups
28 # config.logger = SyslogLogger.new
29
30 # Use a different cache store in production
31 # config.cache_store = :mem_cache_store
32
a117ac4 Vijay Dev fix spellings
vijaydev authored
33 # Enable serving of images, stylesheets, and JavaScripts from an asset server
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
34 # config.action_controller.asset_host = "http://assets.example.com"
35
9aac54c David Heinemeier Hansson Add note about the option to add other precompile targets
dhh authored
36 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
37 # config.assets.precompile += %w( search.js )
38
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
39 # Disable delivery errors, bad email addresses will be ignored
40 # config.action_mailer.raise_delivery_errors = false
41
42 # Enable threaded mode
43 # config.threadsafe!
9a3a4d6 Sven Fuchs Make i18n fallbacks configurable and fallback to the default locale by d...
svenfuchs authored
44
45 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
46 # the I18n.default_locale when a translation can not be found)
47 config.i18n.fallbacks = true
d4c7d3f Yehuda Katz Create a deprecation behavior that triggers a notification for deprecati...
wycats authored
48
49 # Send deprecation notices to registered listeners
0253bf4 José Valim Change :notification to :notify (ht: m4n)
josevalim authored
50 config.active_support.deprecation = :notify
259f384 Joshua Peek Template whitespace
josh authored
51 end
Something went wrong with that request. Please try again.