Class: Cms::Upgrades::V3_5_0::FileStorageUpdates::AttachmentWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/cms/upgrades/v3_5_0.rb

Overview

Allows us to use the Paperclip interpolations logic directly

Instance Method Summary collapse

Constructor Details

#initialize(attachment) ⇒ AttachmentWrapper

Returns a new instance of AttachmentWrapper.



212
213
214
# File 'lib/cms/upgrades/v3_5_0.rb', line 212

def initialize(attachment)
  @attachment = attachment
end

Instance Method Details

#instanceObject



216
217
218
# File 'lib/cms/upgrades/v3_5_0.rb', line 216

def instance
  @attachment
end