Sha256: 3d6e1b3fc9c0fbd3dfea79f2c5234873608919ad91f4c1086c6881e720709928
Contents?: true
Size: 695 Bytes
Versions: 19
Compression:
Stored size: 695 Bytes
Contents
module ActiveRecord module AttributeMethods module Read def read_attribute(attr_name) attr_name = attr_name.to_s # CPK # attr_name = self.class.primary_key if attr_name == 'id' attr_name = self.class.primary_key if (attr_name == 'id' and !self.composite?) if !(value = @attributes[attr_name]).nil? if column = column_for_attribute(attr_name) if unserializable_attribute?(attr_name, column) unserialize_attribute(attr_name) else column.type_cast(value) end else value end else nil end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems