config.threadsafe-r12424.diff

Toshi MARUYAMA, 2013-12-21 03:43

Download (1.38 KB)

View differences:

config/environments/development.rb
16 16
  config.action_mailer.raise_delivery_errors = false
17 17

  
18 18
  config.active_support.deprecation = :log
19

  
20
  # http://hightechsorcery.com/2013/01/fixing-uninitialized-constant-errors-in-rake-tasks-when-using-rails-threadsafe-mode/
21
  # https://github.com/resque/resque/issues/611
22
  config.threadsafe! unless $rails_rake_task
23
  # config.dependency_loading = true if $rails_rake_task
19 24
end
config/environments/test.rb
27 27
  config.active_support.deprecation = :log
28 28

  
29 29
  config.secret_token = 'a secret token for running the tests'
30

  
31
  # http://hightechsorcery.com/2013/01/fixing-uninitialized-constant-errors-in-rake-tasks-when-using-rails-threadsafe-mode/
32
  # https://github.com/resque/resque/issues/611
33
  config.threadsafe! unless $rails_rake_task
34
  # config.dependency_loading = true if $rails_rake_task
30 35
end