Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
try to fix delayed_job version
Browse files Browse the repository at this point in the history
  • Loading branch information
maintux committed Aug 20, 2013
1 parent 79e07d0 commit 9d32430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed_paperclip/jobs/delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module DelayedPaperclip
module Jobs
class DelayedJob < Struct.new(:instance_klass, :instance_id, :attachment_name)

if defined?(::Delayed::DeserializationError) # this is available in newer versions of DelayedJob. Using the newee Job api thus.
if Gem.loaded_specs['delayed_job'].version >= Gem::Version.new("2.1.0") # this is available in newer versions of DelayedJob. Using the newee Job api thus.

def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name)
::Delayed::Job.enqueue(
Expand Down

0 comments on commit 9d32430

Please sign in to comment.