Unexpected behavior

10 views
Skip to first unread message

hitchhiker

unread,
Jan 24, 2012, 6:19:42 AM1/24/12
to MongoMapper
Hi,
I installed MongoVUE (gui for mongodb) and found out that when I use
mass assignment like Record.create!(params) also params that are NOT
exactly specified in model are written to db.
It's not a big problem, but I didn't expect that.

Have a nice day.

John Nunemaker

unread,
Feb 4, 2012, 6:11:36 PM2/4/12
to mongo...@googlegroups.com
Mongo can store anything so we let it. If you want to block access to what goes in, use mass assignment or some other method of filtering what can be stored.


--
You received this message because you are subscribed to the Google
Groups "MongoMapper" group.
For more options, visit this group at
http://groups.google.com/group/mongomapper?hl=en?hl=en

Reply all
Reply to author
Forward
0 new messages