demarches-normaliennes/app/helpers/devise_helper.rb

11 lines
203 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module DeviseHelper
def devise_error_messages!
if resource.errors.full_messages.any?
flash.now[:alert] = resource.errors.full_messages
end
''
end
end