diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-12 14:55:34 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-12 14:57:44 +0000 |
commit | a6b3b89efb99ef5ab31b26d54536808adb304d80 (patch) | |
tree | 85bfc6d6eca0316e9ff7e828e1533d42dfc69f9c | |
parent | ccebe3c3d6d4dc5f8144ba4ff8cab159f5e64a01 (diff) |
Add default Rails 3.2 development settings.
As suggested in http://guides.rubyonrails.org/3_2_release_notes.html
-rw-r--r-- | config/environments/development.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 629685c50..84569f4ab 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -34,4 +34,11 @@ Alaveteli::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 |