Ruby does not allow changing the class of an object, you can do 
Administrator.load(object.values) to get a new Administrator object with the 
same content. Not sure if you also need to modify the type column when doing 
that.

There may be an easier way, but I'm posting from a phone and don't have time to 
review the code.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to