Sha256: 02ac6c3fb6d8fd5d9b50600098a316cd7c506fa74e2ec1a5b3888a794ca0b4e6
Contents?: true
Size: 347 Bytes
Versions: 8
Compression:
Stored size: 347 Bytes
Contents
class EmailAddress < ActiveRecord::Base has_contact validates_format_of :email_address, :with => /\A[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]+\z/, :message => "Must be a valid email address" def summary_line "#{description} : #{email_address}" end def to_label "#{description} : #{email_address}" end end
Version data entries
8 entries across 8 versions & 1 rubygems