From 98119cfe73f420a1306422346414941dd5d92837 Mon Sep 17 00:00:00 2001 From: Jarek Lipski Date: Sun, 10 Nov 2024 17:11:49 +0100 Subject: [PATCH] revert to previous solution for form_with --- app/views/application/_form_with.html.erb | 4 ++-- theo-rails.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/application/_form_with.html.erb b/app/views/application/_form_with.html.erb index 86155c6..d23cf2a 100644 --- a/app/views/application/_form_with.html.erb +++ b/app/views/application/_form_with.html.erb @@ -1,5 +1,5 @@ -<%# locals: (url: nil, model:nil, **attributes) -%> -<%= form_with url:, model: model || false, html: attributes do |form| %> +<%# locals: (url: nil, model:false, **attributes) -%> +<%= form_with url:, model:, html: attributes do |form| %> <% provide(form:) do %> <%= yield form %> <% end %> diff --git a/theo-rails.gemspec b/theo-rails.gemspec index 507e31d..ae6f3f5 100644 --- a/theo-rails.gemspec +++ b/theo-rails.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "theo-rails" - spec.version = "0.4.5" + spec.version = "0.4.6" spec.summary = "Theo is HTML-like template language" spec.description = "HTML-like template language for Rails with natural partial syntax" spec.authors = ["Jarek Lipski"]