Skip to content

Commit

Permalink
Update 20220828142008_remove_drupal_gallery_from_node.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Sep 6, 2022
1 parent 4204a62 commit 6c27608
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions db/migrate/20220828142008_remove_drupal_gallery_from_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ def change
gallery_images << html
end
end
new_revision.body = gallery_images + new_revision.body
puts "#{new_revision.title} #{new_revision.body}"
new_revision.save! unless new_revision.body.strip.empty? || new_revision.body.strip == ""
unless gallery_images == "" || new_revision.body.strip.empty? || new_revision.body.strip == ""
new_revision.body = gallery_images + new_revision.body
puts "#######"
puts "#{new_revision.title} / #{new_revision.nid} / #{new_revision.body}"
new_revision.save!
end
end
end
end

0 comments on commit 6c27608

Please sign in to comment.