Sha256: 883afec4dcb80b6c64dbe68cf16d4d9194421605f78a0989310b770d3a301a18
Contents?: true
Size: 542 Bytes
Versions: 13
Compression:
Stored size: 542 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
13 entries across 13 versions & 1 rubygems