lib/bullet/ext/object.rb in bullet-5.7.6 vs lib/bullet/ext/object.rb in bullet-5.8.0
- old
+ new
@@ -5,10 +5,10 @@
"#{self.class}:#{primary_key_value}"
end
def primary_key_value
if self.class.respond_to?(:primary_keys) && self.class.primary_keys
- self.class.primary_keys.map { |primary_key| send primary_key }.join(','.freeze)
+ self.class.primary_keys.map { |primary_key| send primary_key }.join(',')
elsif self.class.respond_to?(:primary_key) && self.class.primary_key
send self.class.primary_key
else
id
end