##// END OF EJS Templates
remove trailing white-spaces from app/models/user.rb...
Toshi MARUYAMA -
r12959:c2e75254b7df
parent child
Show More
@@ -683,17 +683,17 class User < Principal
683 683 return if self.id.nil?
684 684
685 685 substitute = User.anonymous
686 Attachment.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
686 Attachment.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
687 687 Comment.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
688 688 Issue.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
689 689 Issue.where(['assigned_to_id = ?', id]).update_all('assigned_to_id = NULL')
690 Journal.where(['user_id = ?', id]).update_all(['user_id = ?', substitute.id])
690 Journal.where(['user_id = ?', id]).update_all(['user_id = ?', substitute.id])
691 691 JournalDetail.
692 692 where(["property = 'attr' AND prop_key = 'assigned_to_id' AND old_value = ?", id.to_s]).
693 693 update_all(['old_value = ?', substitute.id.to_s])
694 694 JournalDetail.
695 695 where(["property = 'attr' AND prop_key = 'assigned_to_id' AND value = ?", id.to_s]).
696 update_all(['value = ?', substitute.id.to_s])
696 update_all(['value = ?', substitute.id.to_s])
697 697 Message.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
698 698 News.where(['author_id = ?', id]).update_all(['author_id = ?', substitute.id])
699 699 # Remove private queries and keep public ones
General Comments 0
You need to be logged in to leave comments. Login now