Rake task fix args
This commit is contained in:
parent
f396493e44
commit
2f41828abd
|
@ -16,7 +16,7 @@ namespace :new_site do
|
||||||
I18nVariable.create!( :document_class => 'language', :key => 'zh_tw', :en => 'Chinese', :zh_tw => '中文' )
|
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)
|
Info.create!(key: "profile", built_in: true, disabled: false, title: {"zh_tw"=>"基本欄位", "en"=>"Basic Info"}, to_search: false)
|
||||||
end
|
end
|
||||||
task :necessary_data, [:website_name] => :environment do
|
task :necessary_data, [:website_name] => :environment do |t, args|
|
||||||
site = Site.first
|
site = Site.first
|
||||||
puts website_name = "#{args.website_name}"
|
puts website_name = "#{args.website_name}"
|
||||||
puts site.title = '#{website_name}'
|
puts site.title = '#{website_name}'
|
||||||
|
|
Reference in New Issue