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.3.8 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.7 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.6 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.5 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.4 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.3 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.2 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.1 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.3.0 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.2.2 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.2.1 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.2.0 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.10 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.9 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.8 app/models/pulitzer/post_type_content_element_type.rb