search for: fieldthatshouldnotbechanged1

Displaying 1 result from an estimated 1 matches for "fieldthatshouldnotbechanged1".

2006 Jun 21
5
model with not te be updated attributes ?
...ate of all (even unchanged) fields. I know it is only a matter of milliseconds between read/update, but I don''t like to take any unneeded risks. I found a workaround by overriding update_attributes in my model as follows: def update_attributes(attributes) @attributes.delete(''fieldthatshouldnotbechanged1'') @attributes.delete(''fieldthatshouldnotbechanged2'') @attributes.delete(''fieldthatshouldnotbechanged3'') super(attributes) end I''m wondering though if there isn''t a better way to accomplish this and I also got a gut-feeling the a...