Sha256: b260743c5f9748fca5235fb92dd3631d4f2a8739325dbfa1556fcc79139de8d0

Contents?: true

Size: 330 Bytes

Versions: 17

Compression:

Stored size: 330 Bytes

Contents

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

class ResponsiveSidebar < Card::Migration::Core
  def up
    if (layout = Card.fetch "Default Layout") &&
       layout.updater.id == Card::WagnBotID
      new_content = layout.content.gsub "<body>", '<body class="right-sidebar">'
      layout.update_attributes! content: new_content
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
card-1.92.2 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.92.1 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.92 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.91 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.21.0 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.20.4 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.20.3 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.20.2 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.20.1 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.20.0 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.6 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.5 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.4 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.3 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.2 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.1 db/migrate_core_cards/20150501010515_responsive_sidebar.rb
card-1.19.0 db/migrate_core_cards/20150501010515_responsive_sidebar.rb