Sha256: 5906df005f402c4b04fa0090b55fb1030bda1f270f57a03c268530697c00d6ec
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
module Granite module Form module Model module Associations module Reflections class EmbedsOne < EmbedsAny include Singular def self.build(target, generated_methods, name, options = {}, &block) target.add_attribute(Granite::Form::Model::Attributes::Reflections::Base, name) if target < Granite::Form::Model::Attributes options[:validate] = true unless options.key?(:validate) super end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems