mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 13:49:39 +02:00
Centralize auth messages
This commit is contained in:
parent
40c6c4b756
commit
2adf2de190
8 changed files with 23 additions and 19 deletions
6
app/helpers/auth_messages_helper.rb
Normal file
6
app/helpers/auth_messages_helper.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue