Mercurial > rsstweet
annotate config/application.rb @ 130:faae69155f90
Improved wording?
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 01 Oct 2017 03:55:01 +0900 |
parents | f76d44baa3dc |
children | c57e51af4692 |
rev | line source |
---|---|
72 | 1 require_relative "boot" |
0 | 2 |
3 # Pick the frameworks you want: | |
33
9defe1ae5814
Remove ActiveModel dependency.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
4 # require "active_model/railtie" |
0 | 5 # require "active_record/railtie" |
6 require "action_controller/railtie" | |
1 | 7 # require "action_mailer/railtie" |
0 | 8 require "action_view/railtie" |
9 # require "sprockets/railtie" | |
10 require "rails/test_unit/railtie" | |
11 | |
72 | 12 require_relative "config_init" |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
13 |
0 | 14 # Require the gems listed in Gemfile, including any gems |
15 # you've limited to :test, :development, or :production. | |
16 Bundler.require(*Rails.groups) | |
17 | |
18 module Rsstweet | |
19 class Application < Rails::Application | |
20 # Settings in config/environments/* take precedence over those specified here. | |
21 # Application configuration should go into files in config/initializers | |
22 # -- all .rb files in that directory are automatically loaded. | |
23 | |
72 | 24 config.middleware.delete ActionDispatch::Cookies |
28 | 25 |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
26 # this isn't actually used but railties checks this variable during boot. |
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
27 config.secret_key_base = "herp a derp" |
39 | 28 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
29 |
110 | 30 if $cfg[:redis_server] |
31 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | |
28 | 32 end |
0 | 33 end |
34 end |