demarches-normaliennes/app/helpers/devise_helper.rb

9 lines
172 B
Ruby
Raw Normal View History

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