From 4781f454ed2466cab6cf1dc83afcbe6a8eaac597 Mon Sep 17 00:00:00 2001 From: Ben Lovell Date: Mon, 19 Feb 2024 15:17:12 +0000 Subject: [PATCH] WIP: Changes to view context --- lib/dough/forms/builder.rb | 2 +- lib/dough/forms/builders/validation.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dough/forms/builder.rb b/lib/dough/forms/builder.rb index 9b6b1552..7a8499e7 100644 --- a/lib/dough/forms/builder.rb +++ b/lib/dough/forms/builder.rb @@ -121,7 +121,7 @@ def lookup_context end def view_context - ActionView::Base.new + ActionView::Base.new(lookup_context, {}, nil) end def view_renderer diff --git a/lib/dough/forms/builders/validation.rb b/lib/dough/forms/builders/validation.rb index be560fe6..95635184 100644 --- a/lib/dough/forms/builders/validation.rb +++ b/lib/dough/forms/builders/validation.rb @@ -51,7 +51,7 @@ def view_renderer end def view_context - ActionView::Base.new(lookup_context) + ActionView::Base.new(lookup_context, {}, nil) end private