Sha256: 4441389b19fed40d7f167251a6d22f1ea6af97594ed22bfe8249abc23d5743e8

Contents?: true

Size: 259 Bytes

Versions: 40

Compression:

Stored size: 259 Bytes

Contents

class UsersAndPagesDataset < Dataset::Base
  uses :pages, :users
  
  def load
    UserActionObserver.current_user = users(:admin)
    Page.update_all "created_by_id = #{user_id(:admin)}, updated_by_id = #{user_id(:admin)}"
    create_page "No User"
  end
end

Version data entries

40 entries across 40 versions & 5 rubygems

Version Path
radiant-1.1.4 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.3 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.2 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.1 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.0 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.0.rc1 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.0.beta spec/datasets/users_and_pages_dataset.rb
radiant-1.0.1 spec/datasets/users_and_pages_dataset.rb
radiant-1.1.0.alpha spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0 spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0.rc5 spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0.rc4 spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0.rc3 spec/datasets/users_and_pages_dataset.rb
kajam-1.0.3.rc2 spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0.rc2 spec/datasets/users_and_pages_dataset.rb
radiant-1.0.0.rc1 spec/datasets/users_and_pages_dataset.rb
radiant-rails3-0.1 spec/datasets/users_and_pages_dataset.rb
radiantcms-couchrest_model-0.2.4 spec/datasets/users_and_pages_dataset.rb
radiantcms-couchrest_model-0.2.2 spec/datasets/users_and_pages_dataset.rb
radiantcms-couchrest_model-0.2.1 spec/datasets/users_and_pages_dataset.rb