paranoia 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb9d6ab15bd6fb2e445d1cbb7d83d93c920f94f0
4
- data.tar.gz: d48bc9001fcdbb023d9312c1706dcba6f602c07d
3
+ metadata.gz: 9cebeb3a3793e609311d39a7ade99dfa04defb9b
4
+ data.tar.gz: 43772ac7c1bbcfd9435170ecb14540bafdb80bcd
5
5
  SHA512:
6
- metadata.gz: 2609ec5884f55c9d466a69a7d8df51ed380706c54ec47feab1be36666b63c617f4c1abb133e77f2f05552d23df4182170b0d6934938aacadbf9511214a447a39
7
- data.tar.gz: 74b632024df0628881ac8ed4d338ac301470ff4a0ce985425055aed32537d0315c2c095b4c8f92ebb5467cc9f750f5ab878e06b1092e71c4582cdd82d17ad7a7
6
+ metadata.gz: 6fe0ec6389b02424eb3128f5e4add46d86a15792737fa55ff3c9e11600c982356fa6393c55968792dabcb0271043a47a8c2949454fb9358607dc5f484b308fd4
7
+ data.tar.gz: 8770f65052476d8fa080a93af63655d13c872e1c2ec34ae89c157fe1d38e463dc398c921dd911c6a7c763ac766af4e435c5a474e33542326f702f9393555c693
@@ -1,12 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.0
6
5
  - 2.2.0
7
6
  - jruby-19mode
8
7
 
9
8
  env:
10
- - RAILS='~> 4.0.8'
11
- - RAILS='~> 4.1.4'
12
- - RAILS='~> 4.2.0'
9
+ - RAILS='~> 4.0.13'
10
+ - RAILS='~> 4.1.10'
11
+ - RAILS='~> 4.2.1'
data/README.md CHANGED
@@ -158,6 +158,8 @@ If you want to restore a record:
158
158
 
159
159
  ``` ruby
160
160
  Client.restore(id)
161
+ # or
162
+ client.restore
161
163
  ```
162
164
 
163
165
  If you want to restore a whole bunch of records:
@@ -170,6 +172,8 @@ If you want to restore a record and their dependently destroyed associated recor
170
172
 
171
173
  ``` ruby
172
174
  Client.restore(id, :recursive => true)
175
+ # or
176
+ client.restore(:recursive => true)
173
177
  ```
174
178
 
175
179
  If you want callbacks to trigger before a restore:
@@ -29,7 +29,7 @@ module Paranoia
29
29
  end
30
30
 
31
31
  def only_deleted
32
- with_deleted.where.not(table_name => { paranoia_column => paranoia_sentinel_value} )
32
+ with_deleted.where.not(paranoia_column => paranoia_sentinel_value)
33
33
  end
34
34
  alias :deleted :only_deleted
35
35
 
@@ -199,7 +199,7 @@ class ActiveRecord::Base
199
199
  self.paranoia_column = (options[:column] || :deleted_at).to_s
200
200
  self.paranoia_sentinel_value = options.fetch(:sentinel_value) { Paranoia.default_sentinel_value }
201
201
  def self.paranoia_scope
202
- where(table_name => { paranoia_column => paranoia_sentinel_value })
202
+ where(paranoia_column => paranoia_sentinel_value)
203
203
  end
204
204
  default_scope { paranoia_scope }
205
205
 
@@ -1,3 +1,3 @@
1
1
  module Paranoia
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoia
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - radarlistener@gmail.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-23 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord