permanent_records 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/permanent_records.rb +4 -0
  3. metadata +6 -20
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -119,6 +119,10 @@ module PermanentRecords
119
119
  end
120
120
  end
121
121
 
122
+ def persisted?
123
+ !(new_record? || @destroyed)
124
+ end
125
+
122
126
  def destroy_with_permanent_records(force = nil)
123
127
  unless active_record_3?
124
128
  unless is_permanent? && (:force != force)
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permanent_records
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
4
  prerelease:
6
- segments:
7
- - 2
8
- - 1
9
- - 0
10
- version: 2.1.0
5
+ version: 2.1.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Jack Danger Canty
@@ -20,19 +15,16 @@ date: 2011-06-06 00:00:00 -07:00
20
15
  default_executable:
21
16
  dependencies:
22
17
  - !ruby/object:Gem::Dependency
23
- type: :runtime
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ name: activerecord
19
+ requirement: &id001 !ruby/object:Gem::Requirement
25
20
  none: false
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
24
  version: "0"
33
- requirement: *id001
25
+ type: :runtime
34
26
  prerelease: false
35
- name: activerecord
27
+ version_requirements: *id001
36
28
  description: Never Lose Data. Rather than deleting rows this sets Record#deleted_at and gives you all the scopes you need to work with your data.
37
29
  email: gems@6brand.com
38
30
  executables: []
@@ -81,23 +73,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
73
  requirements:
82
74
  - - ">="
83
75
  - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
76
  version: "0"
88
77
  required_rubygems_version: !ruby/object:Gem::Requirement
89
78
  none: false
90
79
  requirements:
91
80
  - - ">="
92
81
  - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
82
  version: "0"
97
83
  requirements: []
98
84
 
99
85
  rubyforge_project:
100
- rubygems_version: 1.4.2
86
+ rubygems_version: 1.6.2
101
87
  signing_key:
102
88
  specification_version: 3
103
89
  summary: Soft-delete your ActiveRecord records