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