Maya API/MRampAttribute

Hi all! I have an issue with MRampAttribute and updating my node… When I change curve profile in attribute editor my node doesn’t update its computation… I have used attributeAffects() on ramp attribute, but it doesn’t update my node.
I’m doing it with help of Chad Vernon tutorial