Move filter parameters to initializer for Rails 4

This commit is contained in:
Matt-Yorkley
2019-12-21 01:42:04 +01:00
committed by Luis Ramos
parent 046d8e0b87
commit a12ec8c5d9
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -0,0 +1,2 @@
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]