Update Rails config
This commit is contained in:
parent
51f48392ab
commit
527d223680
4 changed files with 32 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue