0
0
Fork 0

Fix statsd null backend not being initialized properly

This commit is contained in:
Eugen Rochko 2017-01-19 09:37:07 +01:00
parent 8b9206f7d9
commit f051c2e813
4 changed files with 7 additions and 7 deletions

View file

@ -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