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