diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-02-14 23:30:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 08:30:27 +0100 |
commit | fb8503e861b630728ead4be847309f1fd7c03dd4 (patch) | |
tree | 36cd2d74fd90b01be37d776978eff3e14ca32a4c /app | |
parent | d15a9df6fefd515e8c655b1a03f08d2a95675d97 (diff) |
Upgrade to Ruby 3.2 (#22928)
Co-authored-by: Matthew Ford <matt@bitzesty.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/models/backup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/backup.rb b/app/models/backup.rb index d242fd62c..277b9395b 100644 --- a/app/models/backup.rb +++ b/app/models/backup.rb @@ -18,5 +18,5 @@ class Backup < ApplicationRecord belongs_to :user, inverse_of: :backups has_attached_file :dump - do_not_validate_attachment_file_type :dump + validates_attachment_content_type :dump, content_type: /\Aapplication/ end |