Sha256: 60bf4f4106807a7c94e808cb430d0470d160e889f508e6e1bccd88954bb4bdce

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

class Size
  include Mongoid::Document
  embedded_in :photo

  field :_id, type: String, default: nil

  field :w, type: Integer
  field :h, type: Integer
end

class Photo
  include Mongoid::Document
  embedded_in :photoable, polymorphic: true
  field :source, type: String
  field :_id, type: String, default: nil
  field :offset, type: Integer
  embeds_one :size
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
models-0.0.22.1 app/models/photo.rb