lib/hanami/assets/application_configuration.rb in hanami-2.0.0.alpha8 vs lib/hanami/assets/application_configuration.rb in hanami-2.0.0.beta1

- old
+ new

@@ -8,20 +8,30 @@ # @since 2.0.0 # @api public class ApplicationConfiguration include Dry::Configurable + # @since 2.0.0 + # @api private + attr_reader :base_configuration + protected :base_configuration + setting :server_url, default: "http://localhost:8080" # @since 2.0.0 # @api private def initialize(*) super @base_configuration = Assets::Configuration.new end + def initialize_copy(source) + super + @base_configuration = source.base_configuration.dup + end + # @since 2.0.0 # @api private def finalize! end @@ -34,13 +44,9 @@ def settings base_configuration.settings + self.class.settings end private - - # @since 2.0.0 - # @api private - attr_reader :base_configuration # @since 2.0.0 # @api private def method_missing(name, *args, &block) if config.respond_to?(name)