From bb053d45fd018881ddff9d7db917a643c696f4b7 Mon Sep 17 00:00:00 2001 From: Martin Ulleberg Date: Tue, 24 Jan 2023 09:38:31 +0100 Subject: [PATCH] Remove extra whitespace from generated update migrations --- lib/generators/scenic/view/templates/db/migrate/update_view.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/scenic/view/templates/db/migrate/update_view.erb b/lib/generators/scenic/view/templates/db/migrate/update_view.erb index 3024f8eb..906baefd 100644 --- a/lib/generators/scenic/view/templates/db/migrate/update_view.erb +++ b/lib/generators/scenic/view/templates/db/migrate/update_view.erb @@ -1,6 +1,6 @@ class <%= migration_class_name %> < <%= activerecord_migration_class %> def change - <% method_name = replace_view? ? 'replace_view' : 'update_view' %> + <%- method_name = replace_view? ? 'replace_view' : 'update_view' -%> <%- if materialized? -%> <%= method_name %> <%= formatted_plural_name %>, version: <%= version %>,