mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
Move categories to top-level namespace (#894)
This commit is contained in:
@@ -124,7 +124,7 @@ class Import < ApplicationRecord
|
||||
tags << tag_cache[tag_string] ||= account.family.tags.find_or_initialize_by(name: tag_string)
|
||||
end
|
||||
|
||||
category = category_cache[category_name] ||= account.family.transaction_categories.find_or_initialize_by(name: category_name) if category_name.present?
|
||||
category = category_cache[category_name] ||= account.family.categories.find_or_initialize_by(name: category_name) if category_name.present?
|
||||
|
||||
txn = account.transactions.build \
|
||||
name: row["name"].presence || FALLBACK_TRANSACTION_NAME,
|
||||
|
||||
Reference in New Issue
Block a user