Commit 8f1693a84efb66598172c8949473d7071656d0eb
1 parent
02217397
Exists in
master
and in
28 other branches
Workaround for problem with acts_as_ferret in production mode
(ActionItem1661)
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/create_thumbnails_job.rb
1 | class CreateThumbnailsJob < Struct.new(:class_name, :file_id) | 1 | class CreateThumbnailsJob < Struct.new(:class_name, :file_id) |
2 | def perform | 2 | def perform |
3 | + Article.disable_ferret # acts_as_ferret sucks | ||
3 | file = class_name.constantize.find(file_id) | 4 | file = class_name.constantize.find(file_id) |
4 | file.create_thumbnails | 5 | file.create_thumbnails |
5 | end | 6 | end |