Project

General

Profile

Actions

Patch #16319

closed

Random crash when using custom fields

Added by Felix Schäfer over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

We (Planio) have seen several random crashes when using custom fields and have narrowed the problem to the usage of super to access attribute setters and getters in ActiveRecord models. According the the ActiveRecord docs, the preferred way to set and get a value from within a custom setter and getter is to use read_attribute and write_attribute.


Files

16319.patch (884 Bytes) 16319.patch Felix Schäfer, 2014-03-11 15:56
fix-crash.diff (689 Bytes) fix-crash.diff Ebrahim Mohammadi, 2014-03-13 04:40
Actions

Also available in: Atom PDF