Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Fix MCP rule previews after matching scope rename (#4163)

Sure Admin (bot)928434e59777
diff --git a/app/models/rule.rb b/app/models/rule.rb
index 0da970060c..965bfc5e4b 100644
--- a/app/models/rule.rb
+++ b/app/models/rule.rb
@@ -108,7 +108,7 @@ class Rule < ApplicationRecord
# The transactions this rule currently matches, as a relation (e.g. for the
# assistant's rule preview, which counts and samples them).
def matching_resources
- matching_resources_scope
+ matching_scope
end
# Creates a categorization rule for the Quick Categorize Wizard.