search for: fieldthatshouldnotbechanged2

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

2006 Jun 21
5
model with not te be updated attributes ?
...seconds 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 above will somehow screw up something else but I can''t put a fi...