-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obfuscate does not work with lambda #24
Comments
hey @belt-ascendlearning, thank you for reporting the bug. Are you running your script against our |
Yes. gem 'polo', github: 'IFTTT/polo/' |
can you post the code you're trying to run? Including your |
@belt-ascendlearning I just wrote a new test case for this, and it looks like the strategy works: |
Polo.configure do obfuscate password_digest: -> {'changeme'} end Polo.explore(User, 1, [:roles]) |
Just managed to reproduce it! |
Hi, @belt-ascendlearning. Thank you for catching this! |
Btw, I just pushed a new version of Polo to rubygems. |
@belt-ascendlearning can you help us with our survey #19? |
Confirmed. Thank you verily. Survey completed... including a gist that others may find useful. |
thank you! |
Oops. Sorry about that. |
fields.to_a.flatten.map(&:to_s)
does not yield the array-of-strings you are looking for... instead it yields:["{:password_digest => #20 < Proc:0x007fccdcb6abb0@RAILS_ROOT/lib/tasks/db_grep_associations.rake:92 (lambda)>}"]
The text was updated successfully, but these errors were encountered: