feat: Save automation rules (#3359)

This commit is contained in:
Tejaswini Chile
2022-01-10 12:41:59 +05:30
committed by GitHub
parent 9a9462f5cb
commit a0884310f4
24 changed files with 746 additions and 3 deletions

View File

@@ -0,0 +1 @@
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule.json.jbuilder', automation_rule: @automation_rule

View File

@@ -0,0 +1,5 @@
json.data do
json.array! @automation_rules do |automation_rule|
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule.json.jbuilder', automation_rule: automation_rule
end
end

View File

@@ -0,0 +1,7 @@
json.id automation_rule.id
json.account_id automation_rule.account_id
json.name automation_rule.name
json.description automation_rule.description
json.event_name automation_rule.event_name
json.conditions automation_rule.conditions
json.actions automation_rule.actions