You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ Warning: This is not a security feature. Fields can still easily be rearranged b
137
137
138
138
#### Advanced Obfuscation
139
139
140
-
For more advanced obfuscation, you can pass in a custom obfuscation strategy. Polo will take in a lambda that can be used to transform sensitive data.
140
+
For more advanced obfuscation, you can pass in a custom obfuscation strategy. Polo will take in a lambda that can be used to transform sensitive data.
141
141
142
142
Using a `:symbol` as an obfuscate key targets all columns of that name. Passing an SQL selector as a `String` will target columns within the specified table.
143
143
@@ -148,14 +148,21 @@ Polo.configure do
148
148
first_part = email.split("@")[0]
149
149
"#{first_part}@test.com"
150
150
end
151
-
151
+
152
152
credit_card_strategy =lambdado |credit_card|
153
153
"4123 4567 8910 1112"
154
154
end
155
-
155
+
156
+
# If you need the context of the record for its fields, it is accessible
0 commit comments