Skip to content

Commit

Permalink
Rails 3.2 config options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Burkhart committed Apr 12, 2012
1 parent 999aba3 commit efd65a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config/environments/development.rb
Expand Up @@ -24,5 +24,14 @@

config.assets.compress = false
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

config.log_tags = [:uuid, :remote_ip]
end

4 changes: 3 additions & 1 deletion config/environments/test.rb
Expand Up @@ -35,5 +35,7 @@

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 efd65a8

Please sign in to comment.