Permalink
Browse files

following 3.1 to 3.2 guide

  • Loading branch information...
1 parent ebda0d4 commit c714e10197053ba013fb87f48367e2a9e1d13cdf @drnic drnic committed Sep 18, 2012
Showing with 10 additions and 0 deletions.
  1. +7 −0 config/environments/development.rb
  2. +3 −0 config/environments/test.rb
@@ -28,5 +28,12 @@
# 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
@@ -36,4 +36,7 @@
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
end

0 comments on commit c714e10

Please sign in to comment.