mashirozx/mastodon

View on GitHub
app/views/shared/_error_messages.html.haml

Summary

Maintainability
Test Coverage
- if object.errors.any?
  .flash-message.alert#error_explanation
    %strong= t('generic.validation_errors', count: object.errors.count)
- object.errors[:base].each do |error|
  - if error != t('auth.rucaptcha_invalid')
    .flash-message.alert
      %strong= error