@@ -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 |
|
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