felipero / couchrails

A Object Document Mapper for Rails 3 that implements ActiveModel
http://github.com/felipero/couchrails
MIT License
14 stars 4 forks source link

couchrest-type attribute in every document #3

Open shenoudab opened 14 years ago

shenoudab commented 14 years ago

couchdb document have attribute "couchrest-type" in every and each document .. while every database have and represent one model document

as in blog example the database represent model "Post" which have the attribute "comments" represent Comment Model .. why adding "couchrest-type" in every Post and every Comment.

felipero commented 14 years ago

I'm not sure why, but this is how Couchrest work. I'd really like to leave this kind of change to them, so I can keep compliant with their projects.

I will only change if you have a great argument to change that. :P

[]'s

Felipe