0
0
Fork 0

Fix #2848 - Rake task to redownload avatars/headers (#4156)

Can be filtered by a specific domain
Resolves #2292
This commit is contained in:
Eugen Rochko 2017-07-11 17:25:49 +02:00 committed by GitHub
parent f93de3a516
commit e6c81a635b
3 changed files with 31 additions and 9 deletions

View file

@ -22,8 +22,8 @@ module Admin
end
def redownload
@account.avatar = @account.avatar_remote_url
@account.header = @account.header_remote_url
@account.reset_avatar!
@account.reset_header!
@account.save!
redirect_to admin_account_path(@account.id)