Sha256: ef013ebd9c01920be8a1ca96f9ba92c661932d2204a009a2d3c60f1d17d057a7

Contents?: true

Size: 341 Bytes

Versions: 45

Compression:

Stored size: 341 Bytes

Contents

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

class FixNotificationHtmlMessage < Card::Migration::Core
  def up
    codename = :follower_notification_email
    dir = File.join data_path, "mailer"
    html_message = Card[codename].fetch trait: "html_message"
    html_message.update_attributes! content: File.read(File.join(dir, "#{codename}.html"))
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
card-1.19.4 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.19.3 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.19.2 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.19.1 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.19.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb