Skip to content

Commit 38a164b

Browse files
committed
Can't put the threadsafe in application.rb after all
1 parent a5924cc commit 38a164b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

config/application.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
module Badgiy
99
class Application < Rails::Application
10-
config.threadsafe! unless $rails_rake_task
11-
1210
config.autoload_paths += %W(#{config.root}/app)
1311

1412
config.autoload_paths += Dir[ Rails.root.join('app', 'models', 'concerns', '**/') ]

config/environments/development.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Badgiy::Application.configure do
2+
config.threadsafe! unless $rails_rake_task
3+
24
config.action_controller.perform_caching = false
35
config.action_dispatch.best_standards_support = :builtin
46
config.action_mailer.delivery_method = :letter_opener
@@ -18,7 +20,7 @@
1820
# Log the query plan for queries taking more than this (works
1921
# with SQLite, MySQL, and PostgreSQL)
2022
config.active_record.auto_explain_threshold_in_seconds = 0.5
21-
23+
2224
# Move cache dir's out of vagrant NFS directory
2325
config.cache_store = [:file_store,"/tmp/codewall-cache/"]
2426
config.assets.cache_store = [:file_store,"/tmp/codewall-cache/assets/"]

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Badgiy::Application.configure do
2-
2+
config.threadsafe! unless $rails_rake_task
33
config.cache_classes = true
44
config.consider_all_requests_local = false
55
config.action_controller.perform_caching = true

config/environments/test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Badgiy::Application.configure do
2+
config.threadsafe! unless $rails_rake_task
23
config.cache_classes = false
34
config.whiny_nils = true
45
config.consider_all_requests_local = true

0 commit comments

Comments
 (0)