Sha256: 4acbf3cd3005edf2ef8d7984e56e7c2e0970eaaec8434ae5528c51c37b3bc421

Contents?: true

Size: 406 Bytes

Versions: 20

Compression:

Stored size: 406 Bytes

Contents

module Ecm::Cms
  class ContentBox < ActiveRecord::Base
    # associations
    has_many :ecm_cms_page_content_blocks, class_name: 'Page::ContentBlock',
                                           foreign_key: 'ecm_cms_content_box_id'

    # validations
    validates :name, presence: true,
                     uniqueness: true

    delegate :count, to: :ecm_cms_page_content_blocks, prefix: true
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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