Attr_readonly

Hi, i’m using rails 2 pre release 2 (1.99.1).
In a model (user) i’ve got some attribute set to “attr_readonly” but
when i create an object of this model @user =
User.find_or_initialize_by_identity_url(identity_url) then i save it
but my readonly attributes are present in my sql query! (so it failed)
is it a bug or is there a way to change this behaviour?

it looks like a bug in rails 1.99.1, in this version when you create
an object with some parameters it will include all table columns. I
just switch back to 1.99.0 and don’t have any problem.

On Dec 1, 2:08 pm, “Jean-Sébastien” [email protected]