Sha256: eadd4860f7f8ae9f9722b627d897a02c3bb985d5b9c35128872966a278acb5b8

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

module Enumerations
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  def self.restore_default_configuration
    @configuration = nil
  end

  class Configuration
    attr_accessor :primary_key
    attr_accessor :foreign_key_suffix

    def initialize
      @primary_key        = nil
      @foreign_key_suffix = nil
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enumerations-2.3.3 lib/enumerations/configuration.rb
enumerations-2.3.2 lib/enumerations/configuration.rb
enumerations-2.3.1 lib/enumerations/configuration.rb
enumerations-2.2.3 lib/enumerations/configuration.rb
enumerations-2.2.2 lib/enumerations/configuration.rb
enumerations-2.2.1 lib/enumerations/configuration.rb