Mercurial > rsstweet
annotate config/application.rb @ 48:8983c426e256
Prevent exploding on empty timeline.
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 23 Apr 2015 16:14:35 +0900 |
parents | e5082c4c234d |
children | 257910c60eb3 |
rev | line source |
---|---|
19 | 1 require File.expand_path("../boot", __FILE__) |
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 | |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
12 require File.expand_path("../config_init", __FILE__) |
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 | |
24 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | |
25 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. | |
26 # config.time_zone = 'Central Time (US & Canada)' | |
27 | |
28 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | |
29 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | |
30 # config.i18n.default_locale = :de | |
12 | 31 config.middleware.delete "ActionDispatch::Cookies" |
28 | 32 |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
33 # 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
|
34 config.secret_key_base = "herp a derp" |
39 | 35 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
36 |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
37 if CFG[:memcached_servers] |
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
38 config.cache_store = :mem_cache_store, CFG[:memcached_servers], { :namespace => "rsstweet" } |
28 | 39 end |
0 | 40 end |
41 end |