Sha256: 2079d9bddeae083a8e361883191ec95a06f4af4341f9068c1ca2417872885ad5

Contents?: true

Size: 221 Bytes

Versions: 1

Compression:

Stored size: 221 Bytes

Contents

class Object
  def bullet_ar_key
    if self.class.respond_to?(:primary_key) && self.class.primary_key
      "#{self.class}:#{self.send self.class.primary_key}"
    else
      "#{self.class}:#{self.id}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet-4.11.1 lib/bullet/ext/object.rb