Sha256: dd9f06bf4d585d5be59b92963dc2f1b48614fad6e1eec253150ce6b7fb9eb439
Contents?: true
Size: 434 Bytes
Versions: 8
Compression:
Stored size: 434 Bytes
Contents
module C80Contest # noinspection RailsParamDefResolve class Bid < ActiveRecord::Base validates :title, :presence => true, :length => { in: 5..100 } validates :phone, :presence => true, :format => { with: /\A((8|\+?7)[\- ]?)?(\(?\d{3,5}\)?[\- ]?)?[\d\- ]{5,10}\z/} validates_presence_of :photo mount_uploader :photo, C80Contest::BidPhotoUploader end end
Version data entries
8 entries across 8 versions & 1 rubygems