demarches-normaliennes/app/helpers/devise_helper.rb
2017-06-21 18:07:58 +02:00

8 lines
172 B
Ruby

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