mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 12:04:21 +08:00
DEV: Fix method that was incorrectly made private.
This commit is contained in:
parent
4037a2fd0b
commit
52c4711e80
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue