Sha256: c53f8a6f81ac40f22fa2d268749d8428005e47d20e3acbdee3f39ada544ad478

Contents?: true

Size: 276 Bytes

Versions: 14

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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 "support/models/circle"
require "support/models/square"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongoid-7.3.5 spec/support/models/shape.rb
mongoid-7.3.4 spec/support/models/shape.rb
mongoid-7.2.6 spec/support/models/shape.rb
mongoid-7.3.3 spec/support/models/shape.rb
mongoid-7.3.2 spec/support/models/shape.rb
mongoid-7.2.5 spec/support/models/shape.rb
mongoid-7.2.4 spec/support/models/shape.rb
mongoid-7.3.1 spec/support/models/shape.rb
mongoid-7.3.0 spec/support/models/shape.rb
mongoid-7.2.3 spec/support/models/shape.rb
mongoid-7.2.2 spec/support/models/shape.rb
mongoid-7.2.1 spec/support/models/shape.rb
mongoid-7.2.0 spec/support/models/shape.rb
mongoid-7.2.0.rc1 spec/support/models/shape.rb