Rake task fix args

This commit is contained in:
saurabhbhatia 2013-10-28 12:17:12 +08:00
parent f396493e44
commit 2f41828abd
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace :new_site do
I18nVariable.create!( :document_class => 'language', :key => 'zh_tw', :en => 'Chinese', :zh_tw => '中文' )
Info.create!(key: "profile", built_in: true, disabled: false, title: {"zh_tw"=>"基本欄位", "en"=>"Basic Info"}, to_search: false)
end
task :necessary_data, [:website_name] => :environment do
task :necessary_data, [:website_name] => :environment do |t, args|
site = Site.first
puts website_name = "#{args.website_name}"
puts site.title = '#{website_name}'