Skip to content
Newer
Older
100644 55 lines (38 sloc) 1.94 KB
d982fe2 Replace reopening the class with App.configure as an alias to class_eval
Carlhuda authored Dec 21, 2009
1 <%= app_const %>.configure do
b59a8d4 @rohit Application settings are specified in application.rb and not environm…
rohit authored Sep 14, 2010
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;…
Carlhuda authored Dec 21, 2009
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 @josevalim Get rid of deprecation warnings on config/environments/*
josevalim authored Feb 2, 2010
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;…
Carlhuda authored Dec 22, 2009
10
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored Mar 27, 2011
11 # Disable Rails's static asset server (Apache or nginx will already do this)
12 config.serve_static_assets = false
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored Mar 26, 2010
13
88cb890 Change compressor API so that plugins can register default compressor…
tomhuda authored May 23, 2011
14 # Compress JavaScripts and CSS
15 config.assets.compress = true
16
17 # Specify the default JavaScript compressor
bd2444d enable uglifier gem as new version of execjs is relased
Ganesh Kumar authored Apr 27, 2011
18 config.assets.js_compressor = :uglifier
59ce0f6 @dhh Turn on JS/CSS compression by default
dhh authored Apr 22, 2011
19
e84788e @dhh Relevant options closer together
dhh authored Apr 27, 2011
20 # Specifies the header that your server uses for sending files
21 # (comment out if your front-end server doesn't support this)
22 config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
23
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored Mar 27, 2011
24 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
25 # config.force_ssl = true
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored Mar 26, 2010
26
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
27 # See everything in the log (default is :info)
28 # config.log_level = :debug
29
30 # Use a different logger for distributed setups
31 # config.logger = SyslogLogger.new
32
33 # Use a different cache store in production
34 # config.cache_store = :mem_cache_store
35
a117ac4 @vijaydev fix spellings
vijaydev authored May 11, 2011
36 # Enable serving of images, stylesheets, and JavaScripts from an asset server
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
37 # config.action_controller.asset_host = "http://assets.example.com"
38
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored Apr 19, 2011
39 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
40 # config.assets.precompile += %w( search.js )
41
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
42 # Disable delivery errors, bad email addresses will be ignored
43 # config.action_mailer.raise_delivery_errors = false
44
45 # Enable threaded mode
46 # config.threadsafe!
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale b…
svenfuchs authored Apr 16, 2010
47
48 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
49 # the I18n.default_locale when a translation can not be found)
50 config.i18n.fallbacks = true
d4c7d3f @wycats Create a deprecation behavior that triggers a notification for deprec…
wycats authored Jun 29, 2010
51
52 # Send deprecation notices to registered listeners
0253bf4 @josevalim Change :notification to :notify (ht: m4n)
josevalim authored Jun 29, 2010
53 config.active_support.deprecation = :notify
259f384 @josh Template whitespace
josh authored Jan 22, 2010
54 end
Something went wrong with that request. Please try again.