Skip to content

Commit

Permalink
Update validation_helpers.md (shrinerb#591)
Browse files Browse the repository at this point in the history
Add clarification of unit
  • Loading branch information
benkoshy authored Jul 18, 2022
1 parent cfd4e1a commit 0bb1a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/plugins/validation_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugin :validation_helpers

Attacher.validate do
validate_mime_type %w[image/jpeg image/png image/webp]
validate_max_size 5*1024*1024
validate_max_size 5*1024*1024 # bytes
# ...
end
```
Expand Down

0 comments on commit 0bb1a12

Please sign in to comment.