mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move filter parameters to initializer for Rails 4
This commit is contained in:
@@ -137,9 +137,6 @@ module Openfoodnetwork
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
config.filter_parameters += [:password]
|
||||
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = true
|
||||
|
||||
|
||||
2
config/initializers/filter_parameter_logging.rb
Normal file
2
config/initializers/filter_parameter_logging.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
Rails.application.config.filter_parameters += [:password]
|
||||
Reference in New Issue
Block a user