From 83efcabc829083f11553df0f1eb67a8fbbc3e000 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 26 Sep 2012 11:17:17 -0700 Subject: set activerecord whitelist_attributes to true --- config/environments/development.rb | 2 +- config/environments/test.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'config/environments') diff --git a/config/environments/development.rb b/config/environments/development.rb index 87b095e27a1..38400d17c8b 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -33,7 +33,7 @@ Gitlab::Application.configure do # 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 diff --git a/config/environments/test.rb b/config/environments/test.rb index 1e7765d9719..f5816e42b7f 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -34,6 +34,9 @@ Gitlab::Application.configure do # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql + # Raise exception on mass assignment protection for Active Record models + # config.active_record.mass_assignment_sanitizer = :strict + # Print deprecation notices to the stderr config.active_support.deprecation = :stderr -- cgit v1.2.3