Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-11 22:34:25 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-11 22:34:25 +0400
commitbc3735004cb45cec5e0e4fa92710897a910a5957 (patch)
tree35fc19853e44c3ecd143db2225ac766da7fb1fd1 /config/environments
parentcc043f32d8bfa7da5e94061806ae56fc11902d71 (diff)
Moving to rails 3.2
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 173bfc74c7c..87b095e27a1 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -30,4 +30,11 @@ Gitlab::Application.configure do
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :letter_opener
+
+ # 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