search for: fieldthatshouldnotbechanged3

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

2006 Jun 21
5
model with not te be updated attributes ?
...eded 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 finger on it (and am probably overlooking the obvious). Any bright idea...