lib/tasks/sample.rake in spree_essential_cms-0.2.1 vs lib/tasks/sample.rake in spree_essential_cms-0.3.0.rc1
- old
+ new
@@ -17,10 +17,10 @@
end
images = Dir[File.expand_path("../sample", __FILE__) + "/*.jpg"]
home = Page.create(:title => "Home", :path => "/")
- home.contents.first.update_attributes(:body => Faker::Lorem.paragraphs().join("\n\n"), :context => "main")
+ home.contents.first.update_attributes(:body => FFaker::Lorem.paragraphs().join("\n\n"), :context => "main")
home.contents.create(:title => Faker::Lorem.words(3 + rand(3)).join(" "), :body => Faker::Lorem.sentence, :context => "intro")
images.each {|image|
PageImage.create(:viewable => home, :attachment => File.open(image), :alt => "Sailing")
}