Sha256: 1d496a7f95c55bd771724a67cb60325d1adf0fef594f3cb5bcce6df5506d5e51
Contents?: true
Size: 1.96 KB
Versions: 8
Compression:
Stored size: 1.96 KB
Contents
module C80Contest class Setting < ActiveRecord::Base mount_uploader :button_photo, C80Contest::ButtonPhotoUploader validates :form_title, :presence => true, :length => { :in => 5..125 } validates :form_label_name, :presence => true, :length => { :in => 3..49 } validates :form_label_phone, :presence => true, :length => { :in => 3..80 } validates :form_label_photo, :presence => true, :length => { :in => 3..80 } validates :form_label_button_send, :presence => true, :length => { :in => 3..15 } validates :form_label_button_sending, :presence => true, :length => { :in => 3..20 } validates :ok_text, :presence => true, :length => { :in => 2..125 } validates :ok_text_title, :presence => true, :length => { :in => 2..125 } validates :admin_label_menu, :presence => true, :length => { :in => 2..20 } validates :rules, # :presence => true, :length => { :in => 0..10000 } validates :message_letter_subj, :presence => true, :length => { :in => 10..125 } validates :message_text, :presence => true, :length => { :in => 20..499 } validates :admin_label_settings, :presence => true, :length => { in: 5..20 } validates :admin_label_bids, :presence => true, :length => { in: 5..20 } validates :mail_from, :presence => true, :length => { in: 5..40 }, :format => { with: /\A([a-z0-9_.-]+)@([a-z0-9-]+)\.[a-z.]+\z/ } validates :mail_to, :presence => true, :length => { in: 5..40 }, :format => { with: /\A([a-z0-9_.-]+)@([a-z0-9-]+)\.[a-z.]+\z/ } end end
Version data entries
8 entries across 8 versions & 1 rubygems