Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove Organization#resave_articles (#1802)
This is now unused and replaced with and ActiveJob class
  • Loading branch information
lightalloy authored and maestromac committed Feb 14, 2019
1 parent 84fbbed commit 5b2d1ba
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/models/organization.rb
Expand Up @@ -77,16 +77,6 @@ def generated_random_secret
SecureRandom.hex(50)
end

# TODO: remove the unused method
def resave_articles
cache_buster = CacheBuster.new
articles.find_each do |article|
cache_buster.bust(article.path)
cache_buster.bust(article.path + "?i=i")
article.save
end
end

def approved_and_filled_out_cta?
cta_processed_html?
end
Expand Down

0 comments on commit 5b2d1ba

Please sign in to comment.