Sha256: 1ed71fc56485309ad30c4798e0e64bb994d17af4ded5226be20aaf6b99d78ba6

Contents?: true

Size: 1.16 KB

Versions: 23

Compression:

Stored size: 1.16 KB

Contents

class LayoutsPagesDataset < Dataset::Base

  uses :layouts_layouts
  
  def load
    create_record :page, :parent,
      :title        => 'Parent',
      :layout_id    => layouts(:parent).id,
      :breadcrumb   => 'parent',
      :slug         => '/',
      :status_id    => 100
    
    create_record :page, :child,
      :title        => 'Child',
      :layout_id    => layouts(:child).id,
      :parent_id    => pages(:parent).id,
      :breadcrumb   => 'child',
      :slug         => '/child',
      :status_id    => 100
      
    create_record :page, :rails,
      :title        => 'App page',
      :breadcrumb   => 'App page',
      :slug         => 'app',
      :class_name   => 'RailsPage',
      :status_id    => 100,
      :parent_id    => pages(:parent).id

    create_record :page, :rails_child,
      :title        => 'Child',
      :breadcrumb   => 'Child',
      :slug         => 'child-page',
      :status_id    => 100,
      :parent_id    => pages(:rails).id

    create_record :page, :other,
      :title        => 'Other',
      :breadcrumb   => 'Other',
      :slug         => 'other',
      :status_id    => 100,
      :parent_id    => pages(:parent).id
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
trusty-layouts-extension-3.1.1 spec/datasets/layouts_pages.rb
trusty-layouts-extension-3.1.0 spec/datasets/layouts_pages.rb
trusty-layouts-extension-3.0.0 spec/datasets/layouts_pages.rb
trusty-layouts-extension-2.0.4 spec/datasets/layouts_pages.rb
trusty-layouts-extension-2.0.3 spec/datasets/layouts_pages.rb
trusty-layouts-extension-2.0.2 spec/datasets/layouts_pages.rb
trusty-layouts-extension-2.0.1 spec/datasets/layouts_pages.rb
trusty-layouts-extension-2.0.0.pre.beta spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.1.0 spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.0.4 spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.0.3 spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.0.2 spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.0.1 spec/datasets/layouts_pages.rb
trusty-layouts-extension-1.0.0 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.1.3 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.1.2 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.1.1 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.1.0 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.0.4 spec/datasets/layouts_pages.rb
radiant-layouts-extension-1.0.3 spec/datasets/layouts_pages.rb