Sha256: 807a5b55013213478b5e3930203a9e69f59ee7f9419e40504dbc8b8024eb877b
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module C80Callback class Cmessage < ActiveRecord::Base validates :name, presence: true, length: { in: 1..30 } validates :mobile, presence: true, length: { in: 1..30 } validates_format_of :mobile, :with => /\A^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$\Z/i # validates_with CmessageValidator end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_callback-0.1.0.2 | app/models/c80_callback/cmessage.rb |