From 9bc3196deeea09bc4d209d7706ddedd33f99f424 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 12 Nov 2012 19:14:31 +0000 Subject: [PATCH] Monkey patch field_changed? support until CPK is updated --- config/initializers/active_record.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/initializers/active_record.rb diff --git a/config/initializers/active_record.rb b/config/initializers/active_record.rb new file mode 100644 index 000000000..fdb6888b2 --- /dev/null +++ b/config/initializers/active_record.rb @@ -0,0 +1,9 @@ +# We need to restore field_changed? support until CPK is updated +module ActiveRecord + module AttributeMethods + module Dirty + private + alias_method :field_changed?, :_field_changed? + end + end +end -- 2.39.5