Skip to content

Commit

Permalink
WIP: Changes to view context
Browse files Browse the repository at this point in the history
  • Loading branch information
benlovell committed Feb 19, 2024
1 parent 57908e3 commit 4781f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dough/forms/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def lookup_context
end

def view_context
ActionView::Base.new
ActionView::Base.new(lookup_context, {}, nil)
end

def view_renderer
Expand Down
2 changes: 1 addition & 1 deletion lib/dough/forms/builders/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def view_renderer
end

def view_context
ActionView::Base.new(lookup_context)
ActionView::Base.new(lookup_context, {}, nil)
end

private
Expand Down

0 comments on commit 4781f45

Please sign in to comment.