Module: Lite::Uxid::Record::Hashid

Extended by:
ActiveSupport::Concern
Defined in:
lib/lite/uxid/record/hashid.rb

Instance Method Summary collapse

Instance Method Details

#uxid_to_idObject


30
31
32
33
34
# File 'lib/lite/uxid/record/hashid.rb', line 30

def uxid_to_id
  return unless respond_to?(:uxid)

  Lite::Uxid::Hashid.decode(uxid)
end