Sha256: 25cf5df6dbe2d891388e132e957ed2eb14747adae39fabdd1936a49498b4031e

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module EncodedId
  module Rails
    # Configuration class for initializer
    class Configuration
      attr_accessor :salt,
        :character_group_size,
        :alphabet,
        :id_length

      def initialize
        @character_group_size = 4
        @alphabet = "0123456789abcdefghjkmnpqrstuvwxyz"
        @id_length = 8
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
encoded_id-rails-0.3.0 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.2.0 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.1.0 lib/encoded_id/rails/configuration.rb