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.60.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.59.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.58.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.57.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.56.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.55.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.54.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.53.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.52.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.51.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.50.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.49.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.48.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.45.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.44.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.43.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.42.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.41.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.40.pre app/models/cmor/cms/content_block.rb
cmor_cms-0.0.39.pre app/models/cmor/cms/content_block.rb