trabajo-afectivo/app/models/text_module.rb

10 lines
350 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
2012-10-22 13:00:26 +00:00
class TextModule < ApplicationModel
validates :name, :presence => true
validates :content, :presence => true
after_create :notify_clients_after_create
after_update :notify_clients_after_update
after_destroy :notify_clients_after_destroy
end