Skip to content

Commit

Permalink
following 3.1 to 3.2 guide
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Sep 19, 2012
1 parent ebda0d4 commit c714e10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/environments/development.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,5 +28,12 @@


# Expands the lines which load the assets # Expands the lines which load the assets
config.assets.debug = true 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 end


3 changes: 3 additions & 0 deletions config/environments/test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@
# Configure static asset server for tests with Cache-Control for performance # Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600" 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 end

0 comments on commit c714e10

Please sign in to comment.