2014-10-23 11:30:34 +08:00
|
|
|
class ContestNotification < ActiveRecord::Base
|
2015-01-09 15:28:43 +08:00
|
|
|
include ExpireHelper
|
2014-10-23 11:30:34 +08:00
|
|
|
attr_accessible :content, :title
|
|
|
|
validates :title, length: {maximum: 30}
|
2015-01-09 15:28:43 +08:00
|
|
|
after_create :expire_forum_cache
|
|
|
|
after_update :expire_forum_cache
|
|
|
|
before_destroy :expire_forum_cache
|
|
|
|
|
2015-01-07 09:27:44 +08:00
|
|
|
|
2014-10-23 11:30:34 +08:00
|
|
|
end
|