permanent_records 2.1.1 → 2.1.2
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.
- data/Gemfile +4 -0
- data/VERSION +1 -1
- data/lib/permanent_records.rb +0 -8
- metadata +1 -1
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.2
|
data/lib/permanent_records.rb
CHANGED
@@ -70,10 +70,6 @@ module PermanentRecords
|
|
70
70
|
deleted_at if is_permanent?
|
71
71
|
end
|
72
72
|
|
73
|
-
def destroyed?
|
74
|
-
deleted? || super
|
75
|
-
end
|
76
|
-
|
77
73
|
def revive
|
78
74
|
if active_record_3?
|
79
75
|
_run_revive_callbacks do
|
@@ -119,10 +115,6 @@ module PermanentRecords
|
|
119
115
|
end
|
120
116
|
end
|
121
117
|
|
122
|
-
def persisted?
|
123
|
-
!(new_record? || @destroyed)
|
124
|
-
end
|
125
|
-
|
126
118
|
def destroy_with_permanent_records(force = nil)
|
127
119
|
unless active_record_3?
|
128
120
|
unless is_permanent? && (:force != force)
|