0
0
Fork 0

Autofix Rubocop Rails/EnumHash (#23737)

This commit is contained in:
Nick Schonning 2023-02-19 23:00:36 -05:00 committed by GitHub
parent 44a7d87cb1
commit 63e6353886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 28 deletions

View file

@ -33,8 +33,8 @@ class MediaAttachment < ApplicationRecord
include Attachmentable
enum type: [:image, :gifv, :video, :unknown, :audio]
enum processing: [:queued, :in_progress, :complete, :failed], _prefix: true
enum type: { :image => 0, :gifv => 1, :video => 2, :unknown => 3, :audio => 4 }
enum processing: { :queued => 0, :in_progress => 1, :complete => 2, :failed => 3 }, _prefix: true
MAX_DESCRIPTION_LENGTH = 1_500