From 4a74ab59d29cf79775ea5e96cd536fba810b75a7 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Thu, 1 Sep 2022 17:19:15 +0530 Subject: [PATCH] chore: Add a feature toggle for account seeding (#5369) --- app/views/super_admin/accounts/_seed_data.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/super_admin/accounts/_seed_data.html.erb b/app/views/super_admin/accounts/_seed_data.html.erb index 9f8358228..e7a5b5afd 100644 --- a/app/views/super_admin/accounts/_seed_data.html.erb +++ b/app/views/super_admin/accounts/_seed_data.html.erb @@ -1,4 +1,4 @@ -<% if !Rails.env.production? %> +<% if !Rails.env.production? || ENV.fetch('ENABLE_ACCOUNT_SEEDING', nil) %>

<%= form_for([:seed, namespace, page.resource], method: :post, html: { class: "form" }) do |f| %>