mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
DEV: Fix method that was incorrectly made private.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user