Modify dev.rake to create the ModuleApp object for web_recsource

This commit is contained in:
Christophe Vilayphiou 2012-02-16 13:28:51 +08:00
parent 4389f0cf28
commit e61aa6b210
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ namespace :dev do
home.page_parts.create!( :name => 'content_4', :content => nil, :kind => 'text', :i18n_variable => nil )
ModuleApp.new.from_json(File.open("#{Rails.root}/vendor/built_in_modules/new_blog/new_blog.json").read).save
ModuleApp.new.from_json(File.open("#{Rails.root}/vendor/built_in_modules/announcement/announcement.json").read).save
ModuleApp.new.from_json(File.open("#{Rails.root}/vendor/built_in_modules/web_resource/web_resource.json").read).save
Post.create(:title=>"1st post",:body=>"Long long time ago.....")
Post.create(:title=>"2ec post",:body=>"And?.....")