Hello,
at the moment,
o = SomeClass.new
id = JSON.dump o.id
=> "
"
id = JSON.load id
=>
SomeClass.find(:id => id) # This fails
This is the process used by sidekiq to serialize parameters for its tasks btw.
Is there a way to query for a record by passing the {{{"$oid"=>"53aa928b6176721976000000"}
}} hash directly?
That would give the symmetric behavior expected of when pushing an id to sidekiq, you retrieve an id in the worker (instead of a hash).