Method: EncodedId::ReversibleId#decode
- Defined in:
- lib/encoded_id/reversible_id.rb
#decode(str) ⇒ Object
Decode the hash to original array
40 41 42 43 44 |
# File 'lib/encoded_id/reversible_id.rb', line 40 def decode(str) encoded_id_generator.decode(convert_to_hash(str)) rescue ::Hashids::InputError => e raise EncodedIdFormatError, e. end |