Sha256: bf57ba6e59f52bf23579954226adb21ae7a1baabcc2ab108260b57b6d614cc40
Contents?: true
Size: 490 Bytes
Versions: 69
Compression:
Stored size: 490 Bytes
Contents
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 "app/models/browser"
Version data entries
69 entries across 64 versions & 3 rubygems