Sha256: e8ee99429f35033487a5298c4aee9e6a110a789bb2620ef2050567a31b05eca4
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
module ActiveRecord class AttributeSet # :nodoc: class Builder # :nodoc: def build_from_database(values = {}, additional_types = {}) # CPK # if always_initialized && !values.key?(always_initialized) # values[always_initialized] = nil # end Array(always_initialized).each do |always_initialized_attribute| if always_initialized_attribute && !values.key?(always_initialized_attribute) values[always_initialized_attribute] = nil end end attributes = LazyAttributeHash.new(types, values, additional_types) AttributeSet.new(attributes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-8.1.0 | lib/composite_primary_keys/attribute_set/builder.rb |
composite_primary_keys-8.0.0 | lib/composite_primary_keys/attribute_set/builder.rb |