Module: PaperclipLambda::Attachment

Defined in:
lib/paperclip_lambda/attachment.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/paperclip_lambda/attachment.rb', line 3

def self.included(base)
  base.send :include, InstanceMethods
  base.send(:alias_method, :save_without_lambda, :save)
  base.send(:alias_method, :save, :save_with_lambda)

  base.send(:alias_method, :destroy_without_lambda, :destroy)
  base.send(:alias_method, :destroy, :destroy_with_lambda)
end