Sha256: 2bc13d82027dbd58ac995e30598b5d545270b847b300125781c9c5e9d281bfa2

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

# -*- encoding : utf-8 -*-

class CommonCssPatch < ActiveRecord::Migration
  include Wagn::MigrationHelper
  def up
    contentedly do
      dir = "#{Wagn.gem_root}/db/migrate_cards/data/1.12_stylesheets"
      card = Card["style: common"]
      if card && card.pristine?
        card.update_attributes! :content=>File.read("#{dir}/common.scss")
      end
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wagn-1.13.0 db/migrate_cards/20131016172445_common_css_patch.rb
wagn-1.13.0.pre2 db/migrate_cards/20131016172445_common_css_patch.rb
wagn-1.13.0.pre1 db/migrate_cards/20131016172445_common_css_patch.rb
wagn-1.13.0.pre db/migrate_cards/20131016172445_common_css_patch.rb