Module: Property::Dirty

Defined in:
lib/property/dirty.rb

Overview

This module implement ActiveRecord::Dirty functionalities with Property attributes. It enables the usual ‘changed?’ and ‘changes’ to include property changes. Unlike dirty, ‘foo_changed?’ and ‘foo_was’ are not defined in the model and should be replaced by #prop.foo_changed? and prop.foo_was.

If you need to find the property changes only, you can use #prop.changes or prop.changed?