Sha256: da399e40131be540658c0af6a3f309b9b3591e1a3932203c01f8b53f4a1a9dac

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

class User < ActiveRecord::Base
  attr_accessible :email, :first_name, :last_name, :phone

  validates :email, uniqueness: true, presence: true

  include MailManager::ContactableRegistry::Contactable
end

MailManager::ContactableRegistry.register_contactable("User",{
  first_name: :first_name,
  last_name: :last_name,
  email_address: :email
  })

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 spec/test_app/app/models/user.rb
mail_manager-0.1.4 spec/test_app/app/models/user.rb
mail_manager-0.1.2 spec/test_app/app/models/user.rb
mail_manager-0.1.1 spec/test_app/app/models/user.rb
mail_manager-0.1.0 spec/test_app/app/models/user.rb
mail_manager-0.0.1 spec/test_app/app/models/user.rb