From 4fd58db23365d9704de67d28c2a4d1c2f65dd824 Mon Sep 17 00:00:00 2001 From: Scott Barron Date: Tue, 8 Jan 2008 09:41:52 -0500 Subject: [PATCH] aasm_after_update -> aasm_persist --- lib/aasm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/aasm.rb b/lib/aasm.rb index ed6394b..595104a 100644 --- a/lib/aasm.rb +++ b/lib/aasm.rb @@ -49,8 +49,8 @@ module AASM private def aasm_current_state=(state) @aasm_current_state = state - if self.respond_to?(:aasm_after_update) || self.private_methods.include?('aasm_after_update') - aasm_after_update + if self.respond_to?(:aasm_persist) || self.private_methods.include?('aasm_persist') + aasm_persist end end end