Sha256: 4dd898116930a6df767bb1e57c25f07b30cc5f0b1c6a1b94e4b548ecff67c949

Contents?: true

Size: 463 Bytes

Versions: 5

Compression:

Stored size: 463 Bytes

Contents

module ActiveDynamic

  @@configuration = nil

  def self.configure
    @@configuration = Configuration.new
    yield configuration if block_given?
    configuration
  end

  def self.configuration
    @@configuration || configure
  end

  class Configuration

    def provider_class
      @provider_class || NullProvider
    end

    def resolve_persisted
      @resolve_persisted || false
    end

    attr_writer :provider_class, :resolve_persisted

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_dynamic-0.5.9 lib/active_dynamic/configuration.rb
active_dynamic-0.5.8 lib/active_dynamic/configuration.rb
active_dynamic-0.5.7 lib/active_dynamic/configuration.rb
active_dynamic-0.5.6 lib/active_dynamic/configuration.rb
active_dynamic-0.5.5 lib/active_dynamic/configuration.rb