Modify dev.rake to create the ModuleApp object for web_recsource
This commit is contained in:
parent
4389f0cf28
commit
e61aa6b210
|
@ -110,6 +110,7 @@ namespace :dev do
|
||||||
home.page_parts.create!( :name => 'content_4', :content => nil, :kind => 'text', :i18n_variable => nil )
|
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/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/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=>"1st post",:body=>"Long long time ago.....")
|
||||||
Post.create(:title=>"2ec post",:body=>"And?.....")
|
Post.create(:title=>"2ec post",:body=>"And?.....")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue