sqids-rails v0.1.1 released
sqids-rails is a new gem that provides Sqids (formerly Hashids) integration for Ruby on Rails.
The initial release provides a has_sqid
method that behaves similarly to has_secure_token
but generates a Sqid on the column.
A future release will provide an opt-in patch to find records via their primary key encoded as an Sqid.
Thanks to Ivan Akimov (@4kimov) for creating and maintaining Sqids and sqids-ruby, and Roberto Miranda (@robertomiranda) for has_secure_token
.
Post a comment