Rules: Alphabetize <select>s in new rule form (#280)

Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Dylan Corrales
2025-11-04 17:15:35 -05:00
committed by GitHub
parent 2064d7e374
commit b4e4c37834
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ class Rule::ActionExecutor::SetTransactionMerchant < Rule::ActionExecutor
end
def options
family.merchants.pluck(:name, :id)
family.merchants.alphabetically.pluck(:name, :id)
end
def execute(transaction_scope, value: nil, ignore_attribute_locks: false)