namick/obfuscate_id

Obfuscate an ActiveRecord collection

keyeh opened this issue · 0 comments

keyeh commented

This is useful for APIs or passing an array of IDs to the view.

I propose adding a class method, something like this:

Post.all.obfuscate_ids
# Returns array of obfuscated IDs

Thoughts?