From 06029c266c7cf14f7540790ee4fcb077602f8950 Mon Sep 17 00:00:00 2001 From: "E.Kuzovlev" Date: Fri, 31 May 2024 13:25:39 +0300 Subject: [PATCH] fix: when using forms generator --- lib/generators/active_form_model/form_generator.rb | 2 +- .../active_form_model/templates/{form.erb => form.rb} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename lib/generators/active_form_model/templates/{form.erb => form.rb} (100%) diff --git a/lib/generators/active_form_model/form_generator.rb b/lib/generators/active_form_model/form_generator.rb index 3c5ddad..670686c 100644 --- a/lib/generators/active_form_model/form_generator.rb +++ b/lib/generators/active_form_model/form_generator.rb @@ -7,7 +7,7 @@ class FormGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('templates', __dir__) def create_form - template 'form.rb', File.join('app/forms', class_path, "#{file_name}_form.erb") + template 'form.rb', File.join('app/forms', class_path, "#{file_name}_form.rb") end end end diff --git a/lib/generators/active_form_model/templates/form.erb b/lib/generators/active_form_model/templates/form.rb similarity index 100% rename from lib/generators/active_form_model/templates/form.erb rename to lib/generators/active_form_model/templates/form.rb