Class: Alchemy::Upgrader::Tasks::PictureGalleryMigration

Inherits:
Object
  • Object
show all
Defined in:
lib/alchemy/upgrader/tasks/picture_gallery_migration.rb

Instance Method Summary collapse

Instance Method Details

#migrate_picture_galleriesObject


3
4
5
6
7
8
9
10
11
# File 'lib/alchemy/upgrader/tasks/picture_gallery_migration.rb', line 3

def migrate_picture_galleries
  if picture_gallery_elements.present?
    picture_gallery_elements.each do |el|
      migrate_element(el)
    end
  else
    puts "No `picture_gallery` elements found. Skip"
  end
end