Sha256: c347386055dd1ece17ad41df9b844c90f745a29827d0c2a7891f5de0f2859bbb

Contents?: true

Size: 557 Bytes

Versions: 32

Compression:

Stored size: 557 Bytes

Contents

class ForumSitesDataset < Dataset::Base
  uses :home_page
  
  def load
    create_record Site, :mysite, :name => 'My Site', :domain => 'mysite.domain.com', :base_domain => 'mysite.domain.com', :position => 1, :homepage_id => page_id(:home)
    create_record Site, :yoursite, :name => 'Your Site', :domain => '^yoursite', :base_domain => 'yoursite.test.com', :position => 2
    create_record Site, :test, :name => 'Test host', :domain => '^test\.', :base_domain => 'test.host', :position => 6
    Page.current_site = sites(:test) if defined? Site
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.5 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-2.0.4 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-2.0.3 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-2.0.2 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-2.0.1 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-2.0.0 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-1.2.1 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-1.1.2 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-1.1.1 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-1.1.0 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-0.6.1 spec/datasets/forum_sites_dataset.rb
radiant-forum-extension-0.6.0 spec/datasets/forum_sites_dataset.rb