organizze_permanent_records 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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)
|
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
|
140
140
|
end
|
141
141
|
run_callbacks :before_destroy
|
142
|
-
|
142
|
+
update
|
143
143
|
run_callbacks :after_destroy
|
144
144
|
end
|
145
145
|
self
|