- Handle exception raised when using a letter-only alphabet and attempting to decode an integer ID from @Drakula2k (#54).
- Found issue where unsigned hashids with
find
did not fall back to passed in ID (#46). - Move finder specs to a shared example run against both the signed and unsigned hashids.
- Fix regression where
find_by_hashid
andfind_by_hashid!
attempt to decode values that are not hashids. (#41)
- Fix eager loading and finding records through a parent. (#39)
- Add option to disable hashid signing. This adds backwards compatibility with pre-1.0 releases. Thanks @olliebennett! (#37)
- Add note to README about upgrading from pre-1.0 releases.
- Sign hashids to prevent accidentally decoded regular ids
- Require explicitly including Hashid::Rails in models
- Improve support for model associations
- Rename config variables to better match hashids project
- Improve overall test coverage
- Add configuration option to disable overriding default
find
(#22).
- Add Rubocop and adjust styles to be consistent.
- Fix issue where finding multiple non-hashids returns an array of nils.
- Switch over testing to use SQLite for more accurate db interactions.
- Update specs to support Rails 5.x series.
- Limit installations to Rails 4.x; gem is not yet Rails 5 compatible.
- Add
find_by_hashid
method to always try and decode, as opposed tofind
which tries to find it as an integer first.
- Multiple ids can be passed to
find
method.
- Update Rails dependency to work with Rails 4.0 and up.
- Customize the alphabet used for Hashids.
- Customize the Hashid seed and length using a configuration initializer.
- Add test coverage
- Fix issue where calling
.reload
on model retries todecode_id
.
- Let
Model#find
work with integers passed in as strings.
- Let
Model#find
work with integer model ids as well as hashids.
- Initial Release