]> git.openstreetmap.org Git - rails.git/commitdiff
Monkey patch field_changed? support until CPK is updated
authorTom Hughes <tom@compton.nu>
Mon, 12 Nov 2012 19:14:31 +0000 (19:14 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 12 Nov 2012 19:15:20 +0000 (19:15 +0000)
config/initializers/active_record.rb [new file with mode: 0644]

diff --git a/config/initializers/active_record.rb b/config/initializers/active_record.rb
new file mode 100644 (file)
index 0000000..fdb6888
--- /dev/null
@@ -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