Mercurial > rsstweet
annotate config/application.rb @ 188:d58666587a55
Whoops wrong lang attribute placement
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 14 Jul 2019 15:55:35 +0900 |
parents | f67f3ad50270 |
children | df86d579634e |
rev | line source |
---|---|
185 | 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" |
185 | 11 # require "action_mailbox/engine" |
12 # require "action_text/engine" | |
0 | 13 require "action_view/railtie" |
148 | 14 # require "action_cable/engine" |
0 | 15 # require "sprockets/railtie" |
16 require "rails/test_unit/railtie" | |
17 | |
185 | 18 require_relative 'config_init' |
19 ENV['RAILS_LOG_TO_STDOUT'] = '1' | |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
20 |
0 | 21 # Require the gems listed in Gemfile, including any gems |
22 # you've limited to :test, :development, or :production. | |
23 Bundler.require(*Rails.groups) | |
24 | |
25 module Rsstweet | |
26 class Application < Rails::Application | |
27 # Settings in config/environments/* take precedence over those specified here. | |
185 | 28 # Application configuration can go into files in config/initializers |
29 # -- all .rb files in that directory are automatically loaded after loading | |
30 # the framework and any gems in your application. | |
0 | 31 |
185 | 32 config.middleware.delete ActionDispatch::HostAuthorization |
72 | 33 config.middleware.delete ActionDispatch::Cookies |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
34 # 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
|
35 config.secret_key_base = "herp a derp" |
39 | 36 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
37 |
110 | 38 if $cfg[:redis_server] |
39 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | |
28 | 40 end |
0 | 41 end |
42 end |