Sha256: d40ee4e4723b8f97a4cd3295d2d55d6e4d06bca271abde2d5f95637576558e79
Contents?: true
Size: 543 Bytes
Versions: 14
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 class Canvas include Mongoid::Document field :name embeds_many :shapes embeds_one :writer embeds_one :palette field :foo, type: String, default: ->{ "original" } has_many :comments, as: :commentable accepts_nested_attributes_for :shapes accepts_nested_attributes_for :writer def render shapes.each { |shape| render } end class Test < Canvas field :foo, type: String, overwrite: true, default: ->{ "overridden" } end end require "support/models/browser"
Version data entries
14 entries across 14 versions & 1 rubygems