Sha256: 73f1614047f0234e8ba41f7274fdc75af77ff0b1ae28ff678b819dce137465ef

Contents?: true

Size: 432 Bytes

Versions: 24

Compression:

Stored size: 432 Bytes

Contents

class SitePagesDataset < Dataset::Base
  uses :home_page
  
  def load
    create_page "Myhomepage", :body => 'This is my page', :slug => '/' do
      create_page "Myotherpage", :body => 'This is my other page', :slug => 'mypage'
    end
    create_page "Yourhomepage", :body => 'This is your home page', :slug => '/' do
      create_page "Yourotherpage", :body => 'This is your other page', :slug => 'yourpage'
    end
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-multi-site-extension-3.1.0 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-3.0.2 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-3.0.1 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-3.0.0 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.11 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.10 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.9 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.7 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.6 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.5 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.4 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.3 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.2 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.1.pre.beta spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-2.0.0.pre.beta spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-1.2.1 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-1.2.0 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-1.1.5 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-1.1.4 spec/datasets/site_pages_dataset.rb
trusty-multi-site-extension-1.0.4 spec/datasets/site_pages_dataset.rb