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:
parent
9f7690873a
commit
7183530e7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue