lib/hanami/helpers/html_helper/html_builder.rb in hanami-helpers-1.2.1 vs lib/hanami/helpers/html_helper/html_builder.rb in hanami-helpers-1.2.2

- old
+ new

@@ -377,11 +377,17 @@ # Forward missing methods to the current context. # This allows to access views local variables from nested content blocks. # # @since 0.1.0 # @api private - def method_missing(method_name, *args, &blk) + def method_missing(method_name, *args, &blk) # rubocop:disable Style/MethodMissingSuper @context.__send__(method_name, *args, &blk) + end + + # @since 1.2.2 + # @api private + def respond_to_missing?(method_name, include_all) + @context.respond_to?(method_name, include_all) end end end end end