Commit 8f1693a84efb66598172c8949473d7071656d0eb

Authored by Antonio Terceiro
1 parent 02217397

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 1 class CreateThumbnailsJob < Struct.new(:class_name, :file_id)
2 2 def perform
  3 + Article.disable_ferret # acts_as_ferret sucks
3 4 file = class_name.constantize.find(file_id)
4 5 file.create_thumbnails
5 6 end
... ...