IFTTT / polo

Polo travels through your database and creates sample snapshots so you can work with real world data in development.
http://ifttt.github.io
MIT License
775 stars 48 forks source link

Fix Custom Strategy #25

Closed nettofarah closed 8 years ago

nettofarah commented 8 years ago

This fixes a bug caused by https://github.com/IFTTT/polo/pull/17 where fields weren't being translated to a hash after being passed on to

Polo.configure do
  obfuscate(...)
end

This commit adds the ability to Polo::Configuration#obfuscate to convert Arrays, Hashes and varargs to Hashes of the format:

{ field_name => custom_strategy }

fixes #24