mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix method that was incorrectly made private.
This commit is contained in:
parent
4037a2fd0b
commit
52c4711e80
@ -217,6 +217,10 @@ class Upload < ActiveRecord::Base
|
|||||||
number_to_human_size(self.filesize)
|
number_to_human_size(self.filesize)
|
||||||
end
|
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)
|
def self.migrate_to_new_scheme(limit = nil)
|
||||||
problems = []
|
problems = []
|
||||||
|
|
||||||
@ -290,12 +294,6 @@ class Upload < ActiveRecord::Base
|
|||||||
problems
|
problems
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def rebake_posts_on_old_scheme
|
|
||||||
self.posts.where("cooked LIKE '%/_optimized/%'").find_each(&:rebake!)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
# == Schema Information
|
||||||
|
Loading…
Reference in New Issue
Block a user