Skip to content
This repository was archived by the owner on Sep 23, 2020. It is now read-only.

Commit fdc7a6b

Browse files
author
Brian Kemper
committed
Apply Issue 34's patch rtomayko#34
until
1 parent f4514f7 commit fdc7a6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/replicate/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def replicate_find_existing_record(attributes)
269269
replicate_natural_key.each do |attribute_name|
270270
conditions[attribute_name] = attributes[attribute_name.to_s]
271271
end
272-
find(:first, :conditions => conditions)
272+
where(conditions).first
273273
end
274274

275275
# Update an AR object's attributes and persist to the database without

0 commit comments

Comments
 (0)