Sha256: 6a754a916a79221f0542d8f37be4e9ea4e1a7f5948719b9b77815e8d8b8ba81c

Contents?: true

Size: 518 Bytes

Versions: 5

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

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

      def initialize
        @character_group_size = 4
        @group_separator = "-"
        @alphabet = ::EncodedId::Alphabet.modified_crockford
        @id_length = 8
        @slugged_id_separator = "--"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
encoded_id-rails-0.6.2 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.6.1 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.6.0 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.5.0 lib/encoded_id/rails/configuration.rb
encoded_id-rails-0.4.0 lib/encoded_id/rails/configuration.rb