Skip to content

Commit

Permalink
Merge pull request #15017 from opf/fix/53132/custom-logo-remove
Browse files Browse the repository at this point in the history
Bust cache when removing logo
  • Loading branch information
HDinger committed Mar 18, 2024
2 parents d609378 + b3ddf68 commit e2c1de9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/custom_styles_controller.rb
Expand Up @@ -197,7 +197,6 @@ def file_delete(remove_method)
end

@custom_style.send(remove_method)
@custom_style.save
redirect_to custom_style_path
end
end
2 changes: 1 addition & 1 deletion app/models/custom_style.rb
Expand Up @@ -35,7 +35,7 @@ def digest
image = send(name)
image&.remove!

update_column name, nil
update_columns(name => nil, updated_at: Time.zone.now)
end
end
end

0 comments on commit e2c1de9

Please sign in to comment.