Rails3: model: replace deprecated errors.add_to_base at cannot_reply_to_locked_topic of Message

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7607 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 12:24:53 +00:00
parent 9f7690873a
commit 7183530e7a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class Message < ActiveRecord::Base
def cannot_reply_to_locked_topic
# Can not reply to a locked topic
errors.add_to_base 'Topic is locked' if root.locked? && self != root
errors.add :base, 'Topic is locked' if root.locked? && self != root
end
def update_parent_last_reply