lib/devise/async/proxy.rb in devise-async-0.1.0 vs lib/devise/async/proxy.rb in devise-async-0.1.1

- old
+ new

@@ -9,10 +9,12 @@ def initialize(method, resource) @method, @resource = method, resource end def deliver - Worker.enqueue(@method, @resource.class.name, @resource.id) + # Use `id.to_s` to avoid problems with mongoid 2.4.X ids being serialized + # wrong with YAJL. + Worker.enqueue(@method, @resource.class.name, @resource.id.to_s) end end end end