Sha256: 49f3c9152742d2d007eec52e49675257cf693d429e36690fbd28fc7f8c4dd424
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true require "dry/configurable" module Hanami module Providers class DB < Dry::System::Provider::Source # @api public # @since 2.2.0 class Adapter include Dry::Configurable # @api public # @since 2.2.0 setting :plugins, mutable: true # @api private def initialize(...) @skip_defaults = Hash.new(false) end # @api public # @since 2.2.0 def skip_defaults(setting_name = nil) @skip_defaults[setting_name] = true end # @api private private def skip_defaults?(setting_name = nil) @skip_defaults[setting_name] end # @api private def configure_for_database(database_url) end # @api public # @since 2.2.0 def plugin(**plugin_spec, &config_block) plugins << [plugin_spec, config_block] end # @api public # @since 2.2.0 def plugins config.plugins ||= [] end # @api private def gateway_cache_keys gateway_options end # @api private def gateway_options {} end # @api public # @since 2.2.0 def clear config.plugins = nil self end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.2.0.beta1 | lib/hanami/providers/db/adapter.rb |