organizze_permanent_records 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -115,7 +115,7 @@ module OrganizzePermanentRecords
|
|
115
115
|
# we call save! instead of update_attribute so an ActiveRecord::RecordInvalid
|
116
116
|
# error will be raised if the record isn't valid. (This prevents reviving records that
|
117
117
|
# disregard validation constraints,)
|
118
|
-
record.send(:
|
118
|
+
record.send(:update_without_callbacks)
|
119
119
|
@attributes, @attributes_cache = record.attributes, record.attributes
|
120
120
|
rescue Exception => e
|
121
121
|
# trigger dependent record destruction (they were revived before this record,
|
@@ -136,10 +136,10 @@ module OrganizzePermanentRecords
|
|
136
136
|
end
|
137
137
|
if active_record_3?
|
138
138
|
_run_destroy_callbacks do
|
139
|
-
|
139
|
+
update_without_callbacks
|
140
140
|
end
|
141
141
|
run_callbacks :before_destroy
|
142
|
-
|
142
|
+
update_without_callbacks
|
143
143
|
run_callbacks :after_destroy
|
144
144
|
end
|
145
145
|
self
|