Sha256: cb1e49cc09e987e8b7d1fa904801672a948714eeb7b4adaac07f493dfd29f2e8

Contents?: true

Size: 342 Bytes

Versions: 14

Compression:

Stored size: 342 Bytes

Contents

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

class FixNotificationHtmlMessage < Card::CoreMigration
  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

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.17.3 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.17.2 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.17.1 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.17.0 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.15 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.14 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.13 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.12 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.11 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.10 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.9 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.8 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb
card-1.16.7 db/migrate_core_cards/20141120120605_fix_notification_html_message.rb