Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up validation failure message when alt-text is missing

  • Loading branch information...
commit e5c90edc0f8979275a9712aa28d3353bcdc23d3e 1 parent 459474c
@tomafro tomafro authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/news_article.rb
View
2  app/models/news_article.rb
@@ -21,7 +21,7 @@ def process_associations_before_save(document)
def image_must_have_a_description
if image.present? && image_alt_text.blank?
- errors.add :image_alt_text, 'All images must have a description'
+ errors.add :image_alt_text, 'must be provided'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.