DEV: Fix method that was incorrectly made private.

This commit is contained in:
Guo Xiang Tan 2019-04-03 12:37:50 +08:00
parent 4037a2fd0b
commit 52c4711e80
1 changed files with 4 additions and 6 deletions

View File

@ -217,6 +217,10 @@ class Upload < ActiveRecord::Base
number_to_human_size(self.filesize)
end
def rebake_posts_on_old_scheme
self.posts.where("cooked LIKE '%/_optimized/%'").find_each(&:rebake!)
end
def self.migrate_to_new_scheme(limit = nil)
problems = []
@ -290,12 +294,6 @@ class Upload < ActiveRecord::Base
problems
end
private
def rebake_posts_on_old_scheme
self.posts.where("cooked LIKE '%/_optimized/%'").find_each(&:rebake!)
end
end
# == Schema Information