Sha256: 73dd041676e469230bde5107f74f7963f8447a5137966c6841fef09b637b2b73

Contents?: true

Size: 312 Bytes

Versions: 55

Compression:

Stored size: 312 Bytes

Contents

module Pulitzer
  class PostTypeContentElementType < ActiveRecord::Base
    belongs_to :post_type
    belongs_to :content_element_type
    has_one :content_element
    delegate :type, :image_type?, to: :content_element_type

    default_scope { order(id: :asc) }

    validates :label, presence: true

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
pulitzer-0.11.3 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.11.2 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.11.1 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.11.0 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.10.3 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.10.2 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.10.1 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.10.0 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.14 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.13 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.11 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.10 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.9 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.8 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.7 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.6 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.5 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.4 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.3 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.5.2 app/models/pulitzer/post_type_content_element_type.rb