Sha256: dceea1f65e9a8f66525c372e4f1ff8f15579763dac4808833f2548cc6730923c

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  # = Active Record Obscured Id
  module ObscuredId
    # Holds configuration options for obscured id
    class Configuration
      attr_accessor :domain

      def initialize
        @domain = 'example.com'
      end
    end

    class << self
      attr_writer :config

      def config
        @config ||= Configuration.new
      end

      def configure
        yield(config)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-obscuredid-0.1.0 lib/activerecord-obscuredid/configuration.rb