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