Sha256: 711c91f93bcdfef97afa0df570525d8e2c22f08ecfe8ffed1bef322c124ce8a3
Contents?: true
Size: 580 Bytes
Versions: 20
Compression:
Stored size: 580 Bytes
Contents
namespace :db do namespace :populate do desc "Create populate data with links" task :create => 'create:links' namespace :create do desc "Add links to populate data" task :links => :read_environment do SocialStream::Population::ActivityObject.new Link do |l| l.loaded = true l.title = Forgery::LoremIpsum.words(1+rand(4),:random => true) l.description = Forgery::LoremIpsum.sentences(1+rand(4), :random => true) l.url = "http://#{ Forgery::Internet.domain_name }" end end end end end
Version data entries
20 entries across 20 versions & 2 rubygems