- [Breaking] Remove
exists?
override.
To continue using exists?
, you can decode the ID first:
User.exists? User.decode_prefix_id(params[:id])
- Ensure that decode returns all parts of composite key
- Add composite key support #70
- Safely handle
to_param
for new records #69
- Add
exist?
override #62 @luizkowalski
find
override now handles arrays
- Add
prefix_id
andprefix_ids
class methods - @TastyPi
- [FIX] Fixes an exception that occurs when you invoke find on a non prefixed association of a prefixed_id model. #49 - @MishaConway
- Add
has_prefix_id fallback: false
option to disable lookup by regular ID - @excid3
- Add
decode_prefix_id
anddecode_prefix_ids
class methods - @TastyPi
- Add
PrefixedIds.salt
andhas_prefix_id salt: ""
option - @domchristie
- [FIX] Override find method on ActiveRecord::Relation - @excid3
- [FIX] Override find method on has_many associations - @excid3
- [FIX] Fallback to ID when overriding find so fixtures still work - @excid3
- [ADD] Add
PrefixedIds.delimiter
to be able to change the default delimiter - @rbague - [FIX] Custom alphabet was not being used to generate the prefixed_id - @rbague
- Add
PrefixedIds.find
to lookup any model by prefixed ID
- Refactor to use Hashids and drop database column requirement
- Fix error for minimum length
- Initial release