organizze_permanent_records 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -135,7 +135,7 @@ module OrganizzePermanentRecords
|
|
135
135
|
# we call save! instead of update_attribute so an ActiveRecord::RecordInvalid
|
136
136
|
# error will be raised if the record isn't valid. (This prevents reviving records that
|
137
137
|
# disregard validation constraints,)
|
138
|
-
record.send(:
|
138
|
+
record.send(:update_without_callbacks)
|
139
139
|
@attributes, @attributes_cache = record.attributes, record.attributes
|
140
140
|
rescue Exception => e
|
141
141
|
# trigger dependent record destruction (they were revived before this record,
|
@@ -156,11 +156,11 @@ module OrganizzePermanentRecords
|
|
156
156
|
end
|
157
157
|
if active_record_3?
|
158
158
|
_run_destroy_callbacks do
|
159
|
-
|
159
|
+
update_without_callbacks
|
160
160
|
end
|
161
161
|
else
|
162
162
|
run_callbacks :before_destroy
|
163
|
-
|
163
|
+
update_without_callbacks
|
164
164
|
run_callbacks :after_destroy
|
165
165
|
end
|
166
166
|
self
|