Sha256: 8de552ba99242649c757d0d4b9b2392dbb662bd8d7415c42738bd9f7ef87ef8f

Contents?: true

Size: 249 Bytes

Versions: 56

Compression:

Stored size: 249 Bytes

Contents

module Cmor::Cms
  class ContentBlock < ActiveRecord::Base
    # associations
    belongs_to :content_box
    belongs_to :page

    # validations
    validates :body, presence: true

    def content_box_name
      content_box.name
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_cms-0.0.17.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.15.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.14.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.13.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.12.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.11.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.10.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.9.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.8.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.7.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.6.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.5.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.4.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.3.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.2.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.1.pre app/models/cmor/cms/content_block.rb