Sha256: 9ada15c038ab0a2395dc879919c3c9cd915197cff584be57a67c09ef1a0e2701
Contents?: true
Size: 541 Bytes
Versions: 14
Compression:
Stored size: 541 Bytes
Contents
# -*- encoding : utf-8 -*- class FixSkinImages < Card::CoreMigration def up # This is needed because the bootswatch_themes migration removed codenames. # They were no longer needed for style handling but are still needed for images %w{bootstrap_default cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex slate spacelab superhero united yeti }.each do |theme_name| theme_name = "#{theme_name}_skin" Card.fetch( theme_name ).update_attributes! codename: theme_name end end end
Version data entries
14 entries across 14 versions & 1 rubygems