prefixed_ids
prefixed_ids copied to clipboard
Add decode_prefix_id to PrefixedIds type
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)