Sha256: 21d763cf9a7463f2a47d6128e5b5e6884210f84894eead0937be068b61a8eeb2

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

class CreateSnippets < ActiveRecord::Migration
  def self.up
    Snippet.create({
      :name     => 'CartOverview',
      :content  => <<-BEGIN
<r:shop:cart>
  <r:if_items>
    <span class="quantity"><r:quantity /></span>
    <span class="price"><r:price /></span>
    <r:link>checkout</r:link>
  </r:if_items>
  <r:unless_items>
    <p>Your cart is empty</p>
  </r:unless_items>
</r:shop:cart>
BEGIN
    })
  end

  def self.down
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-shop-extension-0.9.3 db/migrate/20100908063639_create_snippets.rb
radiant-shop-extension-0.9.2 db/migrate/20100908063639_create_snippets.rb