1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00

Prevent account deletions when account is linked to a Plaid Item (#2218)

* Prevent account deletions when account is linked to a Plaid Item

* Only guard deletions in UI and controller, not at model level
This commit is contained in:
Zach Gollwitzer 2025-05-07 13:56:20 -04:00 committed by GitHub
parent 628d266980
commit a67f36bf64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 25 deletions

View file

@ -45,10 +45,6 @@ module ApplicationHelper
content_for(:header_description) { page_description }
end
def family_stream
turbo_stream_from Current.family if Current.family
end
def page_active?(path)
current_page?(path) || (request.path.start_with?(path) && path != "/")
end