README.markdown in purgatory-2.9.0 vs README.markdown in purgatory-2.10.0
- old
+ new
@@ -56,9 +56,10 @@
all pending purgatories with soul matching the object passed in
### Instance methods
purgatory.pending? # Returns true if the purgatory is pending, false otherwise
purgatory.approved? # Returns true if the purgatory has been approved, false otherwise
+ purgatory.soul_with_changes # Returns the soul with the changes applied (not saved)
### ActiveRecord Lifecycle
When using purgatory, the timing of the activerecord lifecycle differs a bit. Normally when you run "ActiveRecord#save", the entire lifecycle of activerecord gets triggered by default. But when you replace "save" with "purgatory!", the callbacks woould only run until after_validation. It's only after you run "approve!" when the rest of callbacks (ie. before_save, after_create) gets triggered as well.