Sha256: 47e7c248087c90946e8484b3e9cc578331d42464f402b0d39e912d67e7f47e28
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
class Contact < ActiveRecord::Base attr_accessor :secret belongs_to :group validates_presence_of :name validates_presence_of :details validates_presence_of :email validates_presence_of :phone validates_presence_of :url validates_presence_of :group validates_format_of :email, :with => /\A([^\s]+)@([^\s]+)\Z/i, :message => "is not valid" validates_format_of :phone, :with => /\A[0-9\s\(\)\+\-]+\Z/i, :message => "is not valid" has_attached :avatar end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formula-0.3.5 | test/dummy/app/models/contact.rb |