Sha256: 52d80d0edfb7ab3f389644c0711dc0be46f06bc2b5c9f480ae5437cbfa3e6443

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

class Resource
  include Mongoid::Document

  embedded_in :content

  field :slug, type: String
  field :uri, type: String  # the URI of the entity we're linking to
  field :content_type, type: String  # mime type if there is one
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
common-content-0.0.2 app/models/resource.rb
common-content-0.0.1 app/models/resource.rb