Find_by_xxx and updating xxx column doesn't work #27

Closed
josv opened this Issue Feb 13, 2010 · 2 comments

Comments

Projects
None yet
3 participants

josv commented Feb 13, 2010

I found this bug report on the rails-i18n newsgroup:
http://www.mail-archive.com/rails-i18n@googlegroups.com/msg00990.html

I have the same problem and the solution which is suggested by the author seems to work:

add :readonly => false in the find method call
http://github.com/joshmh/globalize2/blob/master/lib/globalize/active_record.rb#L127

However I am not sure if this will break something else.

What is your opinion about this?

Thanks

John

cs3b commented Feb 17, 2010

have the same problem, use the same sollutions - i don't think that this would break anything - rails by default make record as read only when you loading data by joins

Collaborator

hukl commented Apr 22, 2010

Records retrieved by find_by_xx now have writable attributes. closed by f802f19

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment