aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-06-09 11:19:41 -0400
committerSean Griffin <sean@seantheprogrammer.com>2016-06-09 11:19:41 -0400
commitd65320714ede42cc1e20a2da65dc6409758228f8 (patch)
tree5607aee530c5c6e57efe57e5a4fe9af370378785
parentf12c42fff2e0719a95477e40c6be24baeee3b9bd (diff)
downloadrails-d65320714ede42cc1e20a2da65dc6409758228f8.tar.gz
rails-d65320714ede42cc1e20a2da65dc6409758228f8.tar.bz2
rails-d65320714ede42cc1e20a2da65dc6409758228f8.zip
Remove dead code from tests
This code was added in 81286f858770e0b95e15af37f19156b044ec6a95, but was not used by that commit and does not appear to have ever been used.
-rw-r--r--activerecord/test/cases/dirty_test.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb
index 7ad9ff1f57..f9794518c7 100644
--- a/activerecord/test/cases/dirty_test.rb
+++ b/activerecord/test/cases/dirty_test.rb
@@ -5,23 +5,6 @@ require 'models/parrot'
require 'models/person' # For optimistic locking
require 'models/aircraft'
-class Pirate # Just reopening it, not defining it
- attr_accessor :detected_changes_in_after_update # Boolean for if changes are detected
- attr_accessor :changes_detected_in_after_update # Actual changes
-
- after_update :check_changes
-
-private
- # after_save/update and the model itself
- # can end up checking dirty status and acting on the results
- def check_changes
- if self.changed?
- self.detected_changes_in_after_update = true
- self.changes_detected_in_after_update = self.changes
- end
- end
-end
-
class NumericData < ActiveRecord::Base
self.table_name = 'numeric_data'
end