prefixed_ids icon indicating copy to clipboard operation
prefixed_ids copied to clipboard

Add decode_prefix_id to PrefixedIds type

Open namolnad opened this issue 1 year ago • 2 comments

This change allows someone to find an ID from a given prefix_id. This can be useful when setting the id attribute for polymorphic associations, e.g. If a non-prefix ID is passed in, we will try to shortcut the decoding (e.g. returning the ID directly if the argument is an Integer)

namolnad avatar Nov 15 '24 06:11 namolnad