Class: ActiveStorageAttachedManyDrop
- Inherits:
-
Liquidum::Drop
- Object
- Liquid::Drop
- Liquidum::Drop
- ActiveStorageAttachedManyDrop
- Includes:
- Enumerable
- Defined in:
- lib/liquidum/liquid/drops/active_storage_attached_many_drop.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(object) ⇒ ActiveStorageAttachedManyDrop
constructor
A new instance of ActiveStorageAttachedManyDrop.
Methods inherited from Liquidum::Drop
association, #is_for_a?, #to_gid, #to_h, #to_sgid
Constructor Details
#initialize(object) ⇒ ActiveStorageAttachedManyDrop
Returns a new instance of ActiveStorageAttachedManyDrop.
6 7 8 9 |
# File 'lib/liquidum/liquid/drops/active_storage_attached_many_drop.rb', line 6 def initialize(object) super @object = @object.map { |a| ActiveStorage::AttachmentDrop.new(a) } end |
Instance Method Details
#each(&block) ⇒ Object
11 12 13 |
# File 'lib/liquidum/liquid/drops/active_storage_attached_many_drop.rb', line 11 def each(&block) @object.each(&block) end |