Sha256: db13d33cfcb1c6bb3264b6b8d12b2ff4db68bbf63e17b1d43b798b58aa96a60a
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
module Granite module Form module Model module Associations module Reflections class EmbedsMany < EmbedsAny def self.build(target, generated_methods, name, options = {}, &block) if target < Granite::Form::Model::Attributes target.add_attribute(Granite::Form::Model::Attributes::Reflections::Base, name, type: Object) end options[:validate] = true unless options.key?(:validate) super end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
granite-form-0.6.0 | lib/granite/form/model/associations/reflections/embeds_many.rb |