Fix statsd null backend not being initialized properly
This commit is contained in:
parent
8b9206f7d9
commit
f051c2e813
4 changed files with 7 additions and 7 deletions
|
@ -126,7 +126,8 @@ class Account < ApplicationRecord
|
|||
def save_with_optional_avatar!
|
||||
save!
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
self.avatar = nil
|
||||
self.avatar = nil
|
||||
self[:avatar_remote_url] = ''
|
||||
save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue