Commit 16541101

mo k <mo@mokhan.ca>
2012-06-07 02:56:30
update environments config files with latest for rails 3.2
1 parent c16647a
Changed files (2)
config
config/environments/development.rb
@@ -5,7 +5,6 @@ Cake::Application.configure do
   # every request.  This slows down response time but is perfect for development
   # since you don't have to restart the web server when you make code changes.
   config.cache_classes = false
-
   # Log error messages when you accidentally call methods on nil.
   config.whiny_nils = true
 
@@ -27,4 +26,11 @@ Cake::Application.configure do
 
   # Expands the lines which load the assets
   config.assets.debug = true
+
+  # Raise exception on mass assignment protection for Active Record models
+  config.active_record.mass_assignment_sanitizer = :strict
+
+  # Log the query plan for queries taking more than this (works
+  # with SQLite, MySQL, and PostgreSQL)
+  config.active_record.auto_explain_threshold_in_seconds = 0.5
 end
config/environments/test.rb
@@ -33,4 +33,7 @@ Cake::Application.configure do
   # Print deprecation notices to the stderr
   config.active_support.deprecation = :stderr
   config.action_mailer.default_url_options = { :host => 'www.blah.com'}
+
+  # Raise exception on mass assignment protection for Active Record models
+  config.active_record.mass_assignment_sanitizer = :strict
 end