diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-03-11 22:56:07 +0300 |
---|---|---|
committer | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-03-22 21:01:43 +0300 |
commit | 839589fde30cff9ecf963dab775bfd9b9b2fe17b (patch) | |
tree | 6703c6e959d00a039aff6d8b35c0e58ec403bf12 /app/models/concerns/avatarable.rb | |
parent | afd2d381119c3778140c3dd63c7ef24ecdb4c62e (diff) |
Change avatar error message to include allowed file formats
Diffstat (limited to 'app/models/concerns/avatarable.rb')
-rw-r--r-- | app/models/concerns/avatarable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/avatarable.rb b/app/models/concerns/avatarable.rb index d35e37935fb..318df11727e 100644 --- a/app/models/concerns/avatarable.rb +++ b/app/models/concerns/avatarable.rb @@ -21,7 +21,7 @@ module Avatarable def avatar_type unless self.avatar.image? - self.errors.add :avatar, "only images allowed" + errors.add :avatar, "file format is not supported. Please try one of the following supported formats: #{AvatarUploader::IMAGE_EXT.join(', ')}" end end |