Sha256: 722975011ed9a2f5f1246c005ddffd3e68343c10d3ab00622c08a7db3ba9a297

Contents?: true

Size: 533 Bytes

Versions: 20

Compression:

Stored size: 533 Bytes

Contents

Brillo.configure do |config|
  ## Add extra tactics for selecting records as you need them
  # config.add_tactic :oldest, -> (klass) { klass.order(created_at: :desc).limit(1000) }

  ## Custom obfuscations can also be added
  # config.add_obfuscation :remove_ls, -> (field) {
  #   field.gsub(/l/, "X")
  # }

  ## If you need the context of the entire record being obfuscated, it is available in the second argument
  # config.add_obfuscation :phone_with_id, -> (field, instance) {
  #   (555_000_0000 + instance.id).to_s
  # }
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
brillo-2.1.0 config/brillo-initializer.rb
brillo-2.0.0 config/brillo-initializer.rb
brillo-2.0.0.rc4 config/brillo-initializer.rb
brillo-2.0.0.rc3 config/brillo-initializer.rb
brillo-2.0.0.rc2 config/brillo-initializer.rb
brillo-2.0.0.rc1 config/brillo-initializer.rb
brillo-1.3.1 config/brillo-initializer.rb
brillo-1.3.1.pre1 config/brillo-initializer.rb
brillo-1.3.0 config/brillo-initializer.rb
brillo-1.2.2 config/brillo-initializer.rb
brillo-1.2.1 config/brillo-initializer.rb
brillo-1.2.0 config/brillo-initializer.rb
brillo-1.1.4 config/brillo-initializer.rb
brillo-1.1.4.pre2 config/brillo-initializer.rb
brillo-1.1.4.pre1 config/brillo-initializer.rb
brillo-1.1.3 config/brillo-initializer.rb
brillo-1.1.2 config/brillo-initializer.rb
brillo-1.1.1 config/brillo-initializer.rb
brillo-1.1.0 config/brillo-initializer.rb
brillo-1.0.0 config/brillo-initializer.rb