##// END OF EJS Templates
Rails3: model: replace deprecated errors.add_to_base at cannot_reply_to_locked_topic of Message...
Toshi MARUYAMA -
r7487:7183530e7a10
parent child
Show More
@@ -54,7 +54,7 class Message < ActiveRecord::Base
54
54
55 def cannot_reply_to_locked_topic
55 def cannot_reply_to_locked_topic
56 # Can not reply to a locked topic
56 # Can not reply to a locked topic
57 errors.add_to_base 'Topic is locked' if root.locked? && self != root
57 errors.add :base, 'Topic is locked' if root.locked? && self != root
58 end
58 end
59
59
60 def update_parent_last_reply
60 def update_parent_last_reply
General Comments 0
You need to be logged in to leave comments. Login now