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(:save_without_callbacks)
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
- save_without_callbacks
139
+ update_without_callbacks
140
140
  end
141
141
  run_callbacks :before_destroy
142
- save_without_callbacks
142
+ update_without_callbacks
143
143
  run_callbacks :after_destroy
144
144
  end
145
145
  self
@@ -1,3 +1,3 @@
1
1
  module OrganizzePermanentRecords
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
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.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: