Sha256: 0b0be55736cc84d210193177cdfd1b944532723fb4b9ccc4aec649d530ecd98c
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 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, :old_domains def initialize @domain = 'example.com' @old_domains = [] 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.2.0 | lib/activerecord-obscuredid/configuration.rb |