lib/hanami/model/configuration.rb in hanami-model-1.0.0.rc1 vs lib/hanami/model/configuration.rb in hanami-model-1.0.0
- old
+ new
@@ -15,15 +15,15 @@
# @since 0.7.0
# @api private
attr_reader :entities
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
attr_reader :logger
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
attr_reader :migrations_logger
# @since 0.2.0
# @api private
@@ -107,30 +107,30 @@
entity.schema = Sql::Entity::Schema.new(entities, container.relations[relation], mappings.fetch(relation))
end
end
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
def configure_gateway
@gateway_config.call(gateway) unless @gateway_config.nil?
end
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
def logger=(value)
return if value.nil?
gateway.use_logger(@logger = value)
end
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
def rom
@rom ||= ROM::Configuration.new(@backend, @url, infer_relations: false)
end
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
def load!(repositories, &blk) # rubocop:disable Metrics/AbcSize
rom.setup.auto_registration(config.directory.to_s) unless config.directory.nil?
rom.instance_eval(&blk) if block_given?
configure_gateway
@@ -142,10 +142,10 @@
container
rescue => e
raise Hanami::Model::Error.for(e)
end
- # @since 1.0.0.beta1
+ # @since 1.0.0
# @api private
def method_missing(method_name, *args, &blk)
if rom.respond_to?(method_name)
rom.__send__(method_name, *args, &blk)
else