lib/delayed_paperclip/attachment.rb in delayed_paperclip-2.9.0 vs lib/delayed_paperclip/attachment.rb in delayed_paperclip-2.9.1
- old
+ new
@@ -10,11 +10,11 @@
end
module InstanceMethods
def delayed_options
- @options[:delayed]
+ options[:delayed]
end
# Attr accessor in Paperclip
def post_processing_with_delay
!delay_processing? || split_processing?
@@ -33,12 +33,11 @@
!@post_processing_with_delay
end
end
def split_processing?
- options[:only_process] &&
- options[:only_process] !=
- options[:delayed][:only_process]
+ options[:only_process] && delayed_options &&
+ options[:only_process] != delayed_options[:only_process]
end
def processing?
column_name = :"#{@name}_processing?"
@instance.respond_to?(column_name) && @instance.send(column_name)