lib/hanami/model/configurator.rb in hanami-model-1.3.2 vs lib/hanami/model/configurator.rb in hanami-model-1.3.3

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Hanami module Model # Configuration DSL # # @since 0.7.0 @@ -40,11 +42,11 @@ end # @since 1.0.0 # @api private def migrations_logger(stream = $stdout) - require 'hanami/model/migrator/logger' + require "hanami/model/migrator/logger" @migrations_logger ||= Hanami::Model::Migrator::Logger.new(stream) end private @@ -74,13 +76,13 @@ end # @since 1.0.0 # @api private def logger(stream, options = {}) - require 'hanami/logger' + require "hanami/logger" opts = options.merge(stream: stream) - @_logger = Hanami::Logger.new('hanami.model', opts) + @_logger = Hanami::Logger.new("hanami.model", **opts) end # @since 1.0.0 # @api private def gateway(&blk)