Sha256: d5ec7fcf4d018b33e04a88a6f3893673b0904735e148cd4a56c2eaccd1facd29

Contents?: true

Size: 521 Bytes

Versions: 6

Compression:

Stored size: 521 Bytes

Contents

module PagesCms
  class Account < ActiveRecord::Base
    has_many :pages,      dependent: :destroy
    has_many :articles,   dependent: :destroy
    has_many :images,     dependent: :destroy
    has_many :contacts,   dependent: :destroy

    # VALID_MOUNT = /[a-zA-Z]+[\/]/
    validates :mount_location, presence: true, uniqueness: true # ,  format: { with: VALID_MOUNT }

    VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
    validates :email,   presence: true, format: { with: VALID_EMAIL_REGEX }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pages_cms-2.1.1 app/models/pages_cms/account.rb
pages_cms-2.1.0 app/models/pages_cms/account.rb
pages_cms-2.0.1 app/models/pages_cms/account.rb
pages_cms-2.0.0 app/models/pages_cms/account.rb
pages_cms-1.2.3 app/models/pages_cms/account.rb
pages_cms-1.2.2 app/models/pages_cms/account.rb