lib/postgres_upsert/result.rb in postgres_upsert-5.0.0 vs lib/postgres_upsert/result.rb in postgres_upsert-5.1.0
- old
+ new
@@ -2,12 +2,12 @@
class Result
attr_reader :inserted, :updated
def initialize(insert_result, update_result, copy_result)
@inserted = insert_result ? insert_result.cmd_tuples : 0
- @updated = update_result ? update_result.cmd_tuples : 0
- @copied = copy_result ? copy_result.cmd_tuples : 0
+ @updated = update_result ? update_result.cmd_tuples : 0
+ @copied = copy_result ? copy_result.cmd_tuples : 0
end
def changed_rows
@inserted + @updated
end
@@ -18,7 +18,6 @@
def updated_rows
@updated
end
end
-end
-
+end
\ No newline at end of file