Module: ActiveUUID::UUID::Instantiation
- Defined in:
- lib/activeuuid/uuid.rb
Instance Method Summary collapse
Instance Method Details
#instantiate(record, _record_models = nil) ⇒ Object
135 136 137 138 139 140 141 |
# File 'lib/activeuuid/uuid.rb', line 135 def instantiate(record, _record_models = nil) uuid_columns.each do |uuid_column| record[uuid_column] = UUIDTools::UUID.serialize(record[uuid_column]).to_s if record[uuid_column] end super(record) end |