rename 'is_support' to 'contains_messages'

This commit is contained in:
Régis Hanol
2015-11-26 18:40:54 +01:00
parent e8a6ff4808
commit ba0df7e4cd
11 changed files with 18 additions and 13 deletions

View File

@ -540,7 +540,7 @@ class Topic < ActiveRecord::Base
def change_category_to_id(category_id)
return false if private_message?
return false if category.try(:is_support)
return false if category.try(:contains_messages)
new_category_id = category_id.to_i
# if the category name is blank, reset the attribute