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(:update)
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
- update
159
+ update_without_callbacks
160
160
  end
161
161
  else
162
162
  run_callbacks :before_destroy
163
- update
163
+ update_without_callbacks
164
164
  run_callbacks :after_destroy
165
165
  end
166
166
  self
@@ -1,3 +1,3 @@
1
1
  module OrganizzePermanentRecords
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organizze_permanent_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: