lib/prefixed_ids.rb in prefixed_ids-1.2.2 vs lib/prefixed_ids.rb in prefixed_ids-1.3.0
- old
+ new
@@ -9,9 +9,10 @@
autoload :PrefixId, "prefixed_ids/prefix_id"
mattr_accessor :delimiter, default: "_"
mattr_accessor :alphabet, default: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
mattr_accessor :minimum_length, default: 24
+ mattr_accessor :salt, default: ""
mattr_accessor :models, default: {}
def self.find(prefix_id)
prefix, _ = split_id(prefix_id)