Sha256: ee1ed08ce85de63f69d598fb28c1da03de55b07e06f53de7e22bf5a2bc5c4e6d
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module Hashid module Rails class Configuration attr_accessor :salt, :pepper, :min_hash_length, :alphabet, :override_find, :override_to_param, :sign_hashids def initialize @salt = "" @pepper = "" @min_hash_length = 6 @alphabet = "abcdefghijklmnopqrstuvwxyz" \ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "1234567890" @override_find = true @override_to_param = true @sign_hashids = true end def to_args ["#{pepper}#{salt}", min_hash_length, alphabet] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hashid-rails-1.4.1 | lib/hashid/rails/configuration.rb |
hashid-rails-1.4.0 | lib/hashid/rails/configuration.rb |