diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-19 09:37:07 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-19 09:37:07 +0100 |
commit | f051c2e8131616018486cfb9f4a80a120ca71f6e (patch) | |
tree | b9730f9b3c667c82d66a6cf2dba63cba3fc53361 /app/models | |
parent | 8b9206f7d9565ad8b9026e5cc5e085e28ab0117a (diff) |
Fix statsd null backend not being initialized properly
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 621a66e24..c2a41c4c6 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -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 |