Files
sure/app/models
Serge L 861a2d2d91 Fix NoMethodError on nil entryable in account activity feed (#1316)
* Fix NoMethodError when entry has nil entryable

Guard against orphaned entries where the entryable record has been
deleted but the entry still exists, preventing a crash on the
account show page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add dependent: :destroy to Entryable has_one :entry

The polymorphic has_one :entry association lacked a dependent option,
meaning if a Transaction/Trade/Valuation was ever deleted directly
(bypassing the Entry), the Entry would be left orphaned with a nil
entryable — causing NoMethodError in the activity feed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add nil entryable guard to _split_group.html.erb

Same defensive check as _entry.html.erb for consistency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 17:30:12 +02:00
..
2026-03-25 10:50:23 +01:00
2026-03-25 17:47:04 +01:00
2026-03-25 17:47:04 +01:00
2025-03-28 13:08:22 -04:00
2026-03-11 15:54:01 +01:00
2026-03-25 10:50:23 +01:00
2026-01-09 19:38:04 +01:00
2026-01-22 20:37:07 +01:00
2026-01-22 20:37:07 +01:00
2026-03-25 17:47:04 +01:00
2026-03-25 17:47:04 +01:00
2026-03-25 17:47:04 +01:00
2026-03-25 10:50:23 +01:00
2024-02-02 09:05:04 -06:00
2026-03-25 10:50:23 +01:00
2026-03-25 17:47:04 +01:00
2026-03-25 10:50:23 +01:00
2026-03-22 12:02:58 +01:00
2026-03-25 17:47:04 +01:00
2024-10-18 11:26:58 -05:00
2026-03-25 17:47:04 +01:00
2026-03-25 10:50:23 +01:00
2026-03-25 10:50:23 +01:00
2026-01-23 22:05:28 +01:00
2025-05-23 18:58:22 -04:00
2024-08-23 09:33:42 -04:00
2025-11-01 09:12:42 +01:00
2026-02-16 21:11:41 +01:00
2026-03-11 15:54:01 +01:00
2026-01-23 22:05:28 +01:00
2025-11-25 20:21:29 +01:00
2024-05-23 08:09:33 -04:00
2025-03-28 13:08:22 -04:00
2026-03-25 10:50:23 +01:00