Sha256: 39b4c60ee0f8b72c3325847fce30ce18092ad779d2d9eca44fdd37b9b58db22b

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 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) }

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pulitzer-0.1.7 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.6 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.5 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.4 app/models/pulitzer/post_type_content_element_type.rb
pulitzer-0.1.3 app/models/pulitzer/post_type_content_element_type.rb