Thanks for the help earlier this week. I have an odd question...

I have an Identity model being used with Omniauth::Identity. All is well -- 
when someone registers, the credentials (email and encrypted password) are 
saved in Riak. 

However, if in some other code, I retrieve an Identity record by an indexed 
field and save it, a copy of the record seems to crop up with the new email 
field value.

@identity = Identity.find_by_index('zid_id', @zid.key).first
@identity.email = params[:profile][:email]
@identity.save

In other words, if I start with record A, I get A and now B, where B's email 
field is different. 

Ideas?






_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to