lib/hanami/model/configuration.rb in hanami-model-1.1.0.beta1 vs lib/hanami/model/configuration.rb in hanami-model-1.1.0.beta2
- old
+ new
@@ -110,11 +110,11 @@
end
# @since 1.0.0
# @api private
def configure_gateway
- @gateway_config.call(gateway) unless @gateway_config.nil?
+ @gateway_config&.call(gateway)
end
# @since 1.0.0
# @api private
def logger=(value)
@@ -150,9 +150,15 @@
if rom.respond_to?(method_name)
rom.__send__(method_name, *args, &blk)
else
super
end
+ end
+
+ # @since 1.1.0
+ # @api private
+ def respond_to_missing?(method_name, include_all)
+ rom.respond_to?(method_name, include_all)
end
end
end
end