summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:43:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:43:01 +0000
commitc93fccc84a939b14bd5d67d58514bd2ef58e4a08 (patch)
tree6b61e20a573584b35d0ce8de25f746e77658bdc4 /app/models/message.rb
parentd46a0a3a4fd91108da013bd2d348a575d9f860d6 (diff)
downloadredmine-c93fccc84a939b14bd5d67d58514bd2ef58e4a08.tar.gz
redmine-c93fccc84a939b14bd5d67d58514bd2ef58e4a08.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index 53b461501..6dc9c54d2 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -67,7 +67,7 @@ class Message < ActiveRecord::Base
def update_messages_board
if board_id_changed?
- Message.update_all("board_id = #{board_id}", ["id = ? OR parent_id = ?", root.id, root.id])
+ Message.update_all({:board_id => board_id}, ["id = ? OR parent_id = ?", root.id, root.id])
Board.reset_counters!(board_id_was)
Board.reset_counters!(board_id)
end