forked from saurabh/personal-journal
fix error
This commit is contained in:
parent
d02d5a7c40
commit
a73145f038
|
@ -1,6 +1,6 @@
|
|||
namespace :personal_journal do
|
||||
desc 'set_journal_type'
|
||||
task :set_journal_type do |task,args|
|
||||
task :set_journal_type => :environment do |task,args|
|
||||
JournalPaper.where(:rss2_id.ne=>nil).update_all({"$unset"=>{"journal_type_ids"=>""}})
|
||||
MemberTag.all.each do |mt|
|
||||
journal_type = JournalType.where(:title=>mt.title).first
|
||||
|
|
Loading…
Reference in New Issue