Rails activerecord attributes=
- by vinhboy
Hi,
I am doing this:
@person.attributes = params[:person]
Can anyone give me a clue as to why doing an attributes= would cause a bunch of SQL to show in my logs?
I see a couple of SELECT and even an UPDATE.
I swear I am not doing a "save" -- so I have no idea why setting attributes would trigger queries.
Is there a before_ of after_ filter I am missing?
Thanks.