Sha256: cbab1dc63fab24a02a444e596aaccb98d52e2b3d8399382ac6ba0732c9e15695

Contents?: true

Size: 268 Bytes

Versions: 13

Compression:

Stored size: 268 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 "app/models/circle"
require "app/models/square"

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mongoid-7.1.11 spec/app/models/shape.rb
mongoid-7.1.10 spec/app/models/shape.rb
mongoid-7.1.9 spec/app/models/shape.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/app/models/shape.rb
mongoid-7.1.8 spec/app/models/shape.rb
mongoid-7.1.7 spec/app/models/shape.rb
mongoid-7.1.6 spec/app/models/shape.rb
mongoid-7.1.5 spec/app/models/shape.rb
mongoid-7.1.4 spec/app/models/shape.rb
mongoid-7.1.2 spec/app/models/shape.rb
mongoid-7.1.1 spec/app/models/shape.rb
mongoid-7.1.0 spec/app/models/shape.rb
mongoid-7.1.0.rc0 spec/app/models/shape.rb