Fix Rails/ActiveRecordCallbacksOrder cop (#24689)
This commit is contained in:
parent
38b2974a83
commit
b5c4b47746
8 changed files with 28 additions and 41 deletions
|
@ -271,12 +271,12 @@ class MediaAttachment < ApplicationRecord
|
|||
delay_processing? && attachment_name == :file
|
||||
end
|
||||
|
||||
after_commit :enqueue_processing, on: :create
|
||||
after_commit :reset_parent_cache, on: :update
|
||||
|
||||
before_create :set_unknown_type
|
||||
before_create :set_processing
|
||||
|
||||
after_commit :enqueue_processing, on: :create
|
||||
after_commit :reset_parent_cache, on: :update
|
||||
|
||||
after_post_process :set_meta
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue