Sha256: e4f140b62117ae587e86b338de817f0f109774efdb033de08c2758ab07ed2bc1

Contents?: true

Size: 219 Bytes

Versions: 91

Compression:

Stored size: 219 Bytes

Contents

class Shape
  include Mongoid::Document
  field :x, type: Integer, default: 0
  field :y, type: Integer, default: 0

  embedded_in :canvas

  def render; end
end

require "app/models/circle"
require "app/models/square"

Version data entries

91 entries across 86 versions & 8 rubygems

Version Path
mongoid-7.0.13 spec/app/models/shape.rb
mongoid-7.0.12 spec/app/models/shape.rb
mongoid-6.4.8 spec/app/models/shape.rb
mongoid-7.0.11 spec/app/models/shape.rb
mongoid-7.0.10 spec/app/models/shape.rb
mongoid-6.4.7 spec/app/models/shape.rb
mongoid-6.4.5 spec/app/models/shape.rb
mongoid-7.0.8 spec/app/models/shape.rb
mongoid-7.0.7 spec/app/models/shape.rb
mongoid-7.0.6 spec/app/models/shape.rb
mongoid-5.4.1 spec/app/models/shape.rb
mongoid-7.0.5 spec/app/models/shape.rb
mongoid-7.0.4 spec/app/models/shape.rb
mongoid-6.4.4 spec/app/models/shape.rb
mongoid-7.0.3 spec/app/models/shape.rb
mongoid-6.4.2 spec/app/models/shape.rb
mongoid-7.0.2 spec/app/models/shape.rb
mongoid-7.0.1 spec/app/models/shape.rb
mongoid-6.4.1 spec/app/models/shape.rb
mongoid-5.4.0 spec/app/models/shape.rb