mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove dead code from tests
This code was added in 81286f8587
, but was
not used by that commit and does not appear to have ever been used.
This commit is contained in:
parent
f12c42fff2
commit
d65320714e
1 changed files with 0 additions and 17 deletions
|
@ -5,23 +5,6 @@ require 'models/parrot'
|
||||||
require 'models/person' # For optimistic locking
|
require 'models/person' # For optimistic locking
|
||||||
require 'models/aircraft'
|
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
|
class NumericData < ActiveRecord::Base
|
||||||
self.table_name = 'numeric_data'
|
self.table_name = 'numeric_data'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue