Sha256: e6e4ba2542dc67685d8cffb69012a89324aa1bec2c3b8d528dee1e3d17fdddd8

Contents?: true

Size: 604 Bytes

Versions: 20

Compression:

Stored size: 604 Bytes

Contents

class Ecm::Cms::Folder < ActiveRecord::Base
  # associations
  has_many :ecm_cms_pages,
           class_name: 'Ecm::Cms::Page',
           dependent: :destroy,
           foreign_key: 'ecm_cms_folder_id'
  has_many :ecm_cms_partials,
           class_name: 'Ecm::Cms::Partial',
           dependent: :destroy,
           foreign_key: 'ecm_cms_folder_id'
  has_many :ecm_cms_templates,
           class_name: 'Ecm::Cms::Template',
           dependent: :destroy,
           foreign_key: 'ecm_cms_folder_id'

  # validations
  validates :basename, presence: true
  validates :pathname, presence: true
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ecm_cms2-5.1.2 app/models/ecm/cms/folder.rb
ecm_cms2-5.1.1 app/models/ecm/cms/folder.rb
ecm_cms2-5.1.0 app/models/ecm/cms/folder.rb
ecm_cms2-5.0.0 app/models/ecm/cms/folder.rb
ecm_cms2-4.1.1 app/models/ecm/cms/folder.rb
ecm_cms2-4.1.0 app/models/ecm/cms/folder.rb
ecm_cms2-4.0.1 app/models/ecm/cms/folder.rb
ecm_cms2-4.0.0 app/models/ecm/cms/folder.rb
ecm_cms2-3.0.3 app/models/ecm/cms/folder.rb
ecm_cms2-3.0.2 app/models/ecm/cms/folder.rb
ecm_cms2-3.0.1 app/models/ecm/cms/folder.rb
ecm_cms2-3.0.0 app/models/ecm/cms/folder.rb
ecm_cms2-2.1.4 app/models/ecm/cms/folder.rb
ecm_cms2-2.1.3 app/models/ecm/cms/folder.rb
ecm_cms2-2.1.2 app/models/ecm/cms/folder.rb
ecm_cms2-2.1.1 app/models/ecm/cms/folder.rb
ecm_cms2-2.1.0 app/models/ecm/cms/folder.rb
ecm_cms2-2.0.4 app/models/ecm/cms/folder.rb
ecm_cms2-2.0.3 app/models/ecm/cms/folder.rb
ecm_cms2-2.0.2 app/models/ecm/cms/folder.rb