Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (44 sloc) 2.28 kb
d982fe2 Replace reopening the class with App.configure as an alias to class_eval
Carlhuda authored
1 <%= app_const %>.configure do
b59a8d4 @rohit 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 @josevalim 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 @sikachu 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 @wycats 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
f236e00 @guilleiguaran Backport f443f9cb0c64 to master
guilleiguaran authored
17 # Don't fallback to assets pipeline if a precompiled asset is missed
18 config.assets.compile = false
19
20 # Generate digests for assets URLs
21 config.assets.digest = true
22
d0b3937 @guilleiguaran Set default location of manifest with config.assets.manifest
guilleiguaran authored
23 # Defaults to Rails.root.join("public/assets")
24 # config.assets.manifest = YOUR_PATH
25
e84788e @dhh Relevant options closer together
dhh authored
26 # Specifies the header that your server uses for sending files
8845ae6 @spastorino x_sendfile_header now defaults to nil and production.rb env file doesn't
spastorino authored
27 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
e84788e @dhh Relevant options closer together
dhh authored
29
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` middlew...
sikachu authored
30 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31 # config.force_ssl = true
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
32
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
33 # See everything in the log (default is :info)
34 # config.log_level = :debug
35
be27bf1 @dhh Fix the proper production.rb
dhh authored
36 # Prepend all log lines with the following tags
37 # config.log_tags = [ :subdomain, :uuid ]
38
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
39 # Use a different logger for distributed setups
be27bf1 @dhh Fix the proper production.rb
dhh authored
40 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
41
42 # Use a different cache store in production
43 # config.cache_store = :mem_cache_store
44
a117ac4 @vijaydev fix spellings
vijaydev authored
45 # 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
46 # config.action_controller.asset_host = "http://assets.example.com"
47
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored
48 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49 # config.assets.precompile += %w( search.js )
50
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class; no...
Carlhuda authored
51 # Disable delivery errors, bad email addresses will be ignored
52 # config.action_mailer.raise_delivery_errors = false
53
54 # Enable threaded mode
55 # config.threadsafe!
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale by d...
svenfuchs authored
56
57 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58 # the I18n.default_locale when a translation can not be found)
59 config.i18n.fallbacks = true
d4c7d3f @wycats Create a deprecation behavior that triggers a notification for deprecati...
wycats authored
60
61 # Send deprecation notices to registered listeners
0253bf4 @josevalim Change :notification to :notify (ht: m4n)
josevalim authored
62 config.active_support.deprecation = :notify
259f384 @josh Template whitespace
josh authored
63 end
Something went wrong with that request. Please try again.