Sha256: 25cc2312b25a077de28b0ff230b53b1e68f784475e5ddd229df4a0b17ff45aaa
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
module RubySkynet #:nodoc: class Railtie < Rails::Railtie #:nodoc: # Exposes DataCleansing configuration to the Rails application configuration. # # @example Set up configuration in the Rails app. # module MyApplication # class Application < Rails::Application # # # Data Cleansing Configuration # # # Attributes who's values are to be masked out during logging # config.data_cleansing.register_masked_attributes :bank_account_number, :social_security_number # # # Optionally override the default log level # # Set to :trace or :debug to log all fields modified # # Set to :info to log only those fields which were nilled out # # Set to :warn or higher to disable logging of cleansing actions # config.data_cleansing.logger.level = :info # # # Register any global cleaners # config.data_cleansing.register_cleaner(:strip) {|string| string.strip} # # end # end config.data_cleansing = ::DataCleansing end end
Version data entries
7 entries across 7 versions & 1 rubygems