Comments (3)
You can use customize
syntax (anonymize
is a sugar for it basically).
E.g. following snippet will add suffix -test
to values of key
key in data
column:
EvilSeed.configure do |config|
config.customize('User') do |attributes|
attributes['data'].merge!('key' => attributes['data']['key] + '-test')
end
end
from evil-seed.
Released version 0.3.0 in which you can also accept column value in anonymizer block and modify it like this:
EvilSeed.configure do |config|
config.anonymize("User")
metadata { |metadata| metadata&.merge("foo" => "bar") }
end
end
Enjoy!
from evil-seed.
This is awesome thank you!!!
from evil-seed.
Related Issues (12)
- Ignoring columns or avoiding errors HOT 5
- Foreign key nullification HOT 3
- Ignore generated columns HOT 2
- Model with ActiveStorage attachment can't be anonymized HOT 3
- Errno::EMFILE: Too many open files @ rb_sysopen
- Recursive execution? HOT 4
- Support for Foreign Key attribute on belongs_to HOT 1
- Please provide a full example for non ruby developper HOT 2
- Rails 4.2.x and jruby compatibility HOT 5
- Invalid SQL order by clause from root model configuration HOT 1
- Excluding tables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evil-seed.