feat: Ability to seed Demo Accounts (#5352)

Introduces the ability to seed sample data into accounts in development and staging.

fixes: #3429
This commit is contained in:
Sojan Jose
2022-09-01 00:31:43 +05:30
committed by GitHub
parent ebea5428bc
commit c8d01a84ce
13 changed files with 593 additions and 76 deletions

View File

@@ -41,4 +41,9 @@ class SuperAdmin::AccountsController < SuperAdmin::ApplicationController
# See https://administrate-prototype.herokuapp.com/customizing_controller_actions
# for more information
def seed
Seeders::AccountSeeder.new(account: requested_resource).perform!
redirect_back(fallback_location: [namespace, requested_resource], notice: 'Account seeding triggered')
end
end