Sha256: 9bfc5d5ef402b9c700437e7cb1f08c6c06701d535bdf664f59d56f2805b4b568
Contents?: true
Size: 263 Bytes
Versions: 2
Compression:
Stored size: 263 Bytes
Contents
# frozen_string_literal: true module Clowne module Ext module RecordKey # :nodoc: all def key(record) id = record.respond_to?(:id) && record.id ? record.id : record.__id__ [record.class.name, id].join('#') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clowne-1.1.0 | lib/clowne/ext/record_key.rb |
clowne-1.0.0 | lib/clowne/ext/record_key.rb |