From: Tom Hughes Date: Mon, 12 Nov 2012 19:14:31 +0000 (+0000) Subject: Monkey patch field_changed? support until CPK is updated X-Git-Tag: live~5240 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9bc3196deeea09bc4d209d7706ddedd33f99f424 Monkey patch field_changed? support until CPK is updated --- 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