Module: Dooly::Attachment

Extended by:
ActiveSupport::Concern
Included in:
Collection::Base
Defined in:
lib/dooly/attachment.rb,
lib/dooly/attachment/base.rb

Defined Under Namespace

Modules: ClassMethods Classes: Base

Instance Method Summary collapse

Instance Method Details

#attachmentObject



41
42
43
44
45
46
# File 'lib/dooly/attachment.rb', line 41

def attachment
  return @attachment if @attachment
  am = self.attachment_klass.new
  am.body = self
  @attachment = am
end