Sha256: 28372256ceebb8826077a0c4baf096463a432cea3b54a3e45ec2044a5a3ab41d
Contents?: true
Size: 559 Bytes
Versions: 21
Compression:
Stored size: 559 Bytes
Contents
class ChangeImageGridThumbnailSizeAndRegenerate < ActiveRecord::Migration def self.up image_thumbnails = RefinerySetting.find_or_set(:image_thumbnails, {}) RefinerySetting.image_thumbnails = image_thumbnails.merge({:grid => "c124x124"}) system("rake images:regenerate RAILS_ENV=#{Rails.env}") end def self.down image_thumbnails = RefinerySetting.find_or_set(:image_thumbnails, {}) RefinerySetting.image_thumbnails = image_thumbnails.merge({:grid => "c135x135"}) system("rake images:regenerate RAILS_ENV=#{Rails.env}") end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.7 | db/migrate/20100419001048_change_image_grid_thumbnail_size_and_regenerate.rb |