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)
|
||||
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…
Reference in New Issue