Class: Alchemy::Upgrader::FourPointTwo

Inherits:
Alchemy::Upgrader show all
Defined in:
lib/alchemy/upgrader/four_point_two.rb

Class Method Summary collapse

Methods inherited from Alchemy::Upgrader

copy_new_config_file

Methods included from Shell

#add_todo, #desc, #display_todos, #log, silence!, silenced?, #todo, #todos, verbose!

Class Method Details

.alchemy_4_2_todosObject


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/alchemy/upgrader/four_point_two.rb', line 17

def alchemy_4_2_todos
  notice = <<-NOTE

  Element's "picture_gallery" feature removed
  ----------------------------------------------

  The `picture_gallery` feature of elements was removed and has been replaced by nestable elements.

  The automatic updater that just ran updated your `config/alchemy/elements.yml`. A backup was made.
  Nevertheless, you should have a look into it and double check the changes.

  We created nested elements for each gallery picture we found in your database.

  We also updated your element view partials so they have hints about how to render the child elements.
  Please review and fix markup, if necessary.

  PLEASE DOUBLE CHECK YOUR ELEMENT PARTIALS AND ADJUST ACCORDINGLY!

  As always `git diff` is your friend.

  NOTE
  todo notice, 'Alchemy v4.2 changes'
end

.convert_picture_galleriesObject


7
8
9
10
# File 'lib/alchemy/upgrader/four_point_two.rb', line 7

def convert_picture_galleries
  desc 'Convert `picture_gallery` element definitions to `nestable_elements`.'
  Alchemy::Upgrader::Tasks::PictureGalleryUpgrader.new.convert_picture_galleries
end

.migrate_picture_galleriesObject


12
13
14
15
# File 'lib/alchemy/upgrader/four_point_two.rb', line 12

def migrate_picture_galleries
  desc 'Migrate existing gallery elements to `nestable_elements`.'
  Alchemy::Upgrader::Tasks::PictureGalleryMigration.new.migrate_picture_galleries
end