summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-14 14:45:15 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-18 21:51:53 +0100
commit527d223680864a40887674768cf83a4a8626ead9 (patch)
tree0936522cb7f36dd8ba3624296af64f2c4003f7a8 /config/application.rb
parent51f48392abb225eaed58a6368382cdc28a961d3b (diff)
downloadgitlab-ce-527d223680864a40887674768cf83a4a8626ead9.tar.gz
Update Rails config
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index 74ed330effd..d6bb90a3052 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -4,7 +4,7 @@ require 'rails/all'
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
- # Bundler.require *Rails.groups(:assets => %w(development test))
+ # Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
Bundler.require(:default, :assets, Rails.env)
end
@@ -47,6 +47,14 @@ module Gitlab
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
+ # Enable escaping HTML in JSON.
+ config.active_support.escape_html_entities_in_json = true
+
+ # Use SQL instead of Active Record's schema dumper when creating the database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible