lib/active_uxid/hash.rb in active_uxid-1.0.3 vs lib/active_uxid/hash.rb in active_uxid-1.0.4
- old
+ new
@@ -1,9 +1,11 @@
# frozen_string_literal: true
module ActiveUxid
class Hash < ActiveUxid::Base
+ ENCODING_BASE ||= ENCODING_CHARS.length
+
def initialize(id)
@id = id
end
def self.encode(id)