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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4045fd67f66b6cbbaae31fce07b7e6f5cadafd77
4
- data.tar.gz: e97fdbb51832ea05c1704627a4ce43cce1d2a824
3
+ metadata.gz: c7551169f1fc71a7445d163aa06308469af1d728
4
+ data.tar.gz: 8e146765cf38b16ab520e4505e1e2c9d13fe77bb
5
5
  SHA512:
6
- metadata.gz: 01ff43ed7501da46e4c2dcd0f595ac689f26a578a8e11fdaa250f393befb9ac51ec07117ff9b7970ef67ef050c9212d504702be63bb7b9558c320fe3fcb942ca
7
- data.tar.gz: 6075e2f197eb0c8545c3eb3e772079976f4485b34c1b3e1f65ae496da85dde0c5b275c0b2c3812918e59e2a58b0cfad3d0759675164852165a81b113eb9d8d1c
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
- has_many :children, :class_name => "ParanoiacChild"
186
+ has_many :children, :class_name => "ParanoiacChild"
187
187
  end
188
188
 
189
189
  class ParanoiacChild < ActiveRecord::Base
190
- belongs_to :parent
191
- belongs_to :parent_including_deleted, :class_name => "Parent", :with_deleted => true
192
- # You cannot name association *_with_deleted
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
@@ -1,3 +1,3 @@
1
1
  module ActsAsParanoid
2
- VERSION = "0.4.3.pre"
2
+ VERSION = "0.4.3"
3
3
  end
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.pre
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-05-12 00:00:00.000000000 Z
15
+ date: 2014-08-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activerecord