jnicklas/carrierwave-mongoid — Issue #28: to_hash and to_json does not work 
Author: tranngocsam
Created: 2012-01-07 18:02:44+00:00
State: open

In user model, I have:
mount_uploader :avatar, AvatarUploader
but user.to_hash["avatar"] => nil

1.9.2p290 :013 > u = User.where(:username => "mark").first
=> #
1.9.2p290 :014 > u.avatar
=> /people/4f05b77de138235417000004/spring3.jpg
1.9.2p290 :015 > u.to_hash
=> {"id"=>"4f05b77de138235417000004", "avatar_filename"=>"spring3.jpg", "bio"=>"Sed et quo vel occaecati ratione. Ipsam voluptas corporis repudiandae eaque exercitationem ea pariatur. Dolores et magnam earum ipsa et quasi omnis aut. Cumque assumenda praesentium ullam expedita officiis qui nulla.Et omnis doloribus incidunt nam sit in deleniti autem. Atque aperiam et est iusto nihil. Beatae rem est sit ut debitis dolor est.", "confirmed"=>false, "country"=>"US", "created_at"=>"2012-01-05 14:45:17 UTC", "crypted_password"=>"99e0ec4584e875a25b7b87cb6fc75719", "email"=>"mark@alltheparties.com", "enabled"=>true, "first_name"=>"Mark", "follower_of"=>3, "last_name"=>"Ford", "last_status_id"=>"4f05eaece13823431500001b", "last_status_message"=>"Bon nam sau\r\n", "leader_of"=>3, "profile_private"=>false, "salt"=>"75aac32e79a691471a7306b7907d1fa18d0a9356", "updated_at"=>"2012-01-05 18:24:44 UTC", "username"=>"mark"}
1.9.2p290 :016 > u.to_json
=> "{\"id\":\"4f05b77de138235417000004\",\"_id\":\"4f05b77de138235417000004\",\"avatar_filename\":\"spring3.jpg\",\"bio\":\"Sed et quo vel occaecati ratione. Ipsam voluptas corporis repudiandae eaque exercitationem ea pariatur. Dolores et magnam earum ipsa et quasi omnis aut. Cumque assumenda praesentium ullam expedita officiis qui nulla.Et omnis doloribus incidunt nam sit in deleniti autem. Atque aperiam et est iusto nihil. Beatae rem est sit ut debitis dolor est.\",\"confirmed\":false,\"country\":\"US\",\"created_at\":\"2012-01-05T14:45:17Z\",\"crypted_password\":\"99e0ec4584e875a25b7b87cb6fc75719\",\"email\":\"mark@alltheparties.com\",\"enabled\":true,\"first_name\":\"Mark\",\"follower_of\":3,\"last_name\":\"Ford\",\"last_status_id\":\"4f05eaece13823431500001b\",\"last_status_message\":\"Bon nam sau\\r\\n\",\"leader_of\":3,\"profile_private\":false,\"salt\":\"75aac32e79a691471a7306b7907d1fa18d0a9356\",\"updated_at\":\"2012-01-05T18:24:44Z\",\"username\":\"mark\"}"
1.9.2p290 :017 > u.to_hash["avatar"]
=> nil
1.9.2p290 :018 >