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

Centralize auth messages (#269)

* Add i18n-tasks

* Add auth-related i18n

* Centralize auth messages

* Remove safe navigation

* Revert "Remove safe navigation"

This reverts commit 56b5e01e5e.

* Remove newline in Gemfile
This commit is contained in:
Jose Farias 2024-02-03 14:17:49 -06:00 committed by GitHub
parent 69698d0463
commit c5192ee424
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 138 additions and 55 deletions

View file

@ -0,0 +1,6 @@
module AuthMessagesHelper
def auth_messages(form = nil)
render "shared/auth_messages", flash: flash,
errors: form&.object&.errors&.full_messages || []
end
end