OSDN Git Service

fix:error dlg
[pettanr/pettanr.git] / config / environments / test.rb
index e05e0f3..a3e7fdd 100644 (file)
@@ -11,9 +11,6 @@ Pettanr::Application.configure do
   config.serve_static_assets = true
   config.static_cache_control = "public, max-age=3600"
 
-  # Log error messages when you accidentally call methods on nil
-  config.whiny_nils = true
-
   # Show full error reports and disable caching
   config.consider_all_requests_local       = true
   config.action_controller.perform_caching = false
@@ -36,12 +33,14 @@ Pettanr::Application.configure do
 
   # Print deprecation notices to the stderr
   config.active_support.deprecation = :stderr
+config.eager_load = false
+config.active_record.migration_error = :page_load
 end
 
 module Pettanr
   if File.exist? Rails.root + 'config/test_layout'
-    TestLayout = 'test'
+    test_layout = 'test'
   else
-    TestLayout = false
+    test_layout = false
   end
 end