lib/action_view/template/handlers.rb in actionview-6.0.0.beta3 vs lib/action_view/template/handlers.rb in actionview-6.0.0.rc1

- old
+ new

@@ -43,15 +43,15 @@ handler.method(:call).parameters end unless params.find_all { |type, _| type == :req || type == :opt }.length >= 2 ActiveSupport::Deprecation.warn <<~eowarn - Single arity template handlers are deprecated. Template handlers must + Single arity template handlers are deprecated. Template handlers must now accept two parameters, the view object and the source for the view object. Change: - >> #{handler.class}#call(#{params.map(&:last).join(", ")}) + >> #{handler}.call(#{params.map(&:last).join(", ")}) To: - >> #{handler.class}#call(#{params.map(&:last).join(", ")}, source) + >> #{handler}.call(#{params.map(&:last).join(", ")}, source) eowarn handler = LegacyHandlerWrapper.new(handler) end raise(ArgumentError, "Extension is required") if extensions.empty?