Fix Rails/ActiveRecordCallbacksOrder cop (#24689)
This commit is contained in:
@@ -25,8 +25,8 @@ class Block < ApplicationRecord
|
||||
false # Force uri_for to use uri attribute
|
||||
end
|
||||
|
||||
after_commit :remove_blocking_cache
|
||||
before_validation :set_uri, only: :create
|
||||
after_commit :remove_blocking_cache
|
||||
|
||||
private
|
||||
|
||||
|
Reference in New Issue
Block a user