Sha256: 3fb17099b9ce05535e2283f79fa398b473a01aff639f0e2338fda48c32fbdb46
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 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[a-z\/]+\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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pages_cms-2.2.3 | app/models/pages_cms/account.rb |
pages_cms-2.2.2 | app/models/pages_cms/account.rb |
pages_cms-2.2.1 | app/models/pages_cms/account.rb |