email_address.rb 325 B

1234567
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class EmailAddress < ApplicationModel
  3. has_many :groups, :after_add => :cache_update, :after_remove => :cache_update
  4. validates :realname, :presence => true
  5. validates :email, :presence => true
  6. end