Module: DelayedPaperclip::Attachment

Defined in:
lib/delayed_paperclip/attachment.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/delayed_paperclip/attachment.rb', line 4

def self.included(base)
  base.send :include, InstanceMethods
  base.send :attr_accessor, :job_is_processing

  base.send :alias_method, :post_processing_without_delay, :post_processing
  base.send :alias_method, :post_processing, :post_processing_with_delay

  base.send :alias_method, :post_processing_without_delay=, :post_processing=
  base.send :alias_method, :post_processing=, :post_processing_with_delay=

  base.send :alias_method, :save_without_prepare_enqueueing, :save
  base.send :alias_method, :save, :save_with_prepare_enqueueing
end