trabajo-afectivo/app/models/email_address.rb

9 lines
375 B
Ruby
Raw Normal View History

class EmailAddress < ApplicationModel
has_many :groups, :after_add => :cache_update, :after_remove => :cache_update
after_create :cache_delete
after_update :cache_delete
after_destroy :cache_delete
validates :realname, :presence => true
validates :email, :presence => true
end