persistent_record 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/persistent_record/version.rb +1 -1
- data/lib/persistent_record.rb +4 -0
- data/persistent_record.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjM3MzQ2MDk2MmY2NTAwMDYzZjQxMWI3YzkwYWIwYTcwZWY2MDA2Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Nzg2MjM3YTY0MzhjMzAyNzdkNWU1YWZiZjFmOWE3Yjc0NzZjNjhlMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2NhOWVkMGNmNzJjMTJjMDVlMTFlMGIwMzUyNGEzMWUwZDZjMzlmNjg2OGQx
|
10
|
+
NzA3ZjY2ZjI1MGZkMmMxYTlhYTc1NDA3ZDA2YzU5NDg0NTEzMzdiYzBiZTY0
|
11
|
+
YmM1ODc4ZDhmNDIxODYzNWE0MjJjYWRiMDk4MjRmMDkwMDQzN2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjUyYzVkMmNjNDc5M2RlNmZjMDkxZGIwY2I4Y2YyZjAyMzZlYmQ3Mjg1OThm
|
14
|
+
NmFhOGQ3Yjc2NTQwZjgyMjY1MDM2OWEwNTI5MDkwZWQ3ZjhiZjE4ZDk4NTZm
|
15
|
+
MWI5NWQ4ZjVhMzI2MTUwNTY3ODBhMzVjYWNhNDRkNmYwYThkZTE=
|
data/lib/persistent_record.rb
CHANGED
@@ -165,6 +165,10 @@ class ActiveRecord::Base
|
|
165
165
|
self.class.notify_observers(:after_restore, self) if self.class.respond_to?(:notify_observers)
|
166
166
|
}
|
167
167
|
|
168
|
+
unless connection.column_exists?(table_name, record_deleted_at_column)
|
169
|
+
raise(ActiveModel::MissingAttributeError)
|
170
|
+
end
|
171
|
+
|
168
172
|
end
|
169
173
|
|
170
174
|
def self.persistent?
|
data/persistent_record.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ["hej@carbin.se"]
|
12
12
|
spec.description = %q{Introduces soft deletions for ActiveRecord.}
|
13
13
|
spec.summary = %q{Introduces soft deletions for ActiveRecord.}
|
14
|
-
spec.homepage = "http://
|
14
|
+
spec.homepage = "http://github.com/lessthanthree/persistent_record"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: persistent_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Grass
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- lib/persistent_record.rb
|
69
69
|
- lib/persistent_record/version.rb
|
70
70
|
- persistent_record.gemspec
|
71
|
-
homepage: http://
|
71
|
+
homepage: http://github.com/lessthanthree/persistent_record
|
72
72
|
licenses:
|
73
73
|
- MIT
|
74
74
|
metadata: {}
|