Sha256: 7e2791ce425744f3061d2316b59dbaab4c25937b8831bd85fe2870b2483f1686

Contents?: true

Size: 1.06 KB

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
data_cleansing-1.1.0 lib/data_cleansing/railtie.rb
data_cleansing-1.0.3 lib/data_cleansing/railtie.rb