Instead of registering observer in every case and then checking if CleansAttributes is implemented on every event, we should register observer only if the model actually implements CleansAttributes.
This way those of us that are not interested in automatic attribute cleaning can simply not implement it without any overhead.
Instead of registering observer in every case and then checking if CleansAttributes is implemented on every event, we should register observer only if the model actually implements CleansAttributes.
This way those of us that are not interested in automatic attribute cleaning can simply not implement it without any overhead.