acts_as_paranoid 0.4.3.pre → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/acts_as_paranoid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7551169f1fc71a7445d163aa06308469af1d728
|
4
|
+
data.tar.gz: 8e146765cf38b16ab520e4505e1e2c9d13fe77bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c319b13d74e1f9d3e0ca9b030f670e4bfbe516f0af7df8dac479252067656bce8ee94aec6ed919e3cd22fc402259c4568f72fe3614e3c3bdfc5ceaacd4893449
|
7
|
+
data.tar.gz: 89f0485c49c4b2da6761fbec96ff69d94c241e60284dd320e70b537b5bd3984d36afc2fd5f15bb8b169d9246394899be0a734a8ea697e3f0cde7c8711ca3baf3
|
data/README.md
CHANGED
@@ -183,13 +183,15 @@ Associations are also supported. From the simplest behaviors you'd expect to mor
|
|
183
183
|
|
184
184
|
```ruby
|
185
185
|
class Parent < ActiveRecord::Base
|
186
|
-
|
186
|
+
has_many :children, :class_name => "ParanoiacChild"
|
187
187
|
end
|
188
188
|
|
189
189
|
class ParanoiacChild < ActiveRecord::Base
|
190
|
-
|
191
|
-
belongs_to :
|
192
|
-
|
190
|
+
acts_as_paranoid
|
191
|
+
belongs_to :parent
|
192
|
+
|
193
|
+
# You may need to provide a foreign_key like this
|
194
|
+
belongs_to :parent_including_deleted, :class_name => "Parent", foreign_key => 'parent_id', :with_deleted => true
|
193
195
|
end
|
194
196
|
|
195
197
|
parent = Parent.first
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_paranoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.3
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Scott
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activerecord
|