G
Greg Ma
Hi,
I have an array of events comming from a database and I have a new
object (so without an id).
I would like to check if my new object already exists in the database.
I tried exists? and include? but obviously id doesn't work because my
new object has no id.
Is there a simple way to compare my object or I will have to compare
each attribute?
Greg
I have an array of events comming from a database and I have a new
object (so without an id).
I would like to check if my new object already exists in the database.
I tried exists? and include? but obviously id doesn't work because my
new object has no id.
Is there a simple way to compare my object or I will have to compare
each attribute?
Greg