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"
<jeansebastien....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---