mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 17:19:39 +02:00
Get generator working again
This commit is contained in:
parent
d64e1fc575
commit
016b48a71c
1 changed files with 3 additions and 2 deletions
|
@ -188,11 +188,12 @@ class Demo::Generator
|
||||||
family.rules.create!(
|
family.rules.create!(
|
||||||
effective_date: 1.year.ago.to_date,
|
effective_date: 1.year.ago.to_date,
|
||||||
active: true,
|
active: true,
|
||||||
|
resource_type: "transaction",
|
||||||
conditions: [
|
conditions: [
|
||||||
Rule::Condition.new(condition_type: "match_merchant", value: "Whole Foods")
|
Rule::Condition.new(condition_type: "transaction_merchant", operator: "=", value: "Whole Foods")
|
||||||
],
|
],
|
||||||
actions: [
|
actions: [
|
||||||
Rule::Action.new(action_type: "set_category", value: "Groceries")
|
Rule::Action.new(action_type: "set_transaction_category", value: "Groceries")
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue