Sha256: e9d1c80c7f3a2f67e61cea8e99f3f2741dadd3872ba6982021644ea8a147cbca
Contents?: true
Size: 262 Bytes
Versions: 4
Compression:
Stored size: 262 Bytes
Contents
class Object def bullet_key [self.class, self.primary_key_value].join(':') end def primary_key_value if self.class.respond_to?(:primary_key) && self.class.primary_key self.send self.class.primary_key else self.id end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bullet-4.13.2 | lib/bullet/ext/object.rb |
bullet-4.13.1 | lib/bullet/ext/object.rb |
bullet-4.13.0 | lib/bullet/ext/object.rb |
bullet-4.12.0 | lib/bullet/ext/object.rb |