paranoia 1.3.0 → 1.3.1

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: 6d1586094e7835b1d718602ae37b0c333a45a553
4
- data.tar.gz: 3df4961b93e213a09baf0eb4db5c0df0a40bb5cf
3
+ metadata.gz: 07438f51e6a97736c8bbb1778bbb7b9cbe5c623c
4
+ data.tar.gz: 4456e34fe1c2988dfe9cb1014ca8002e288ec45c
5
5
  SHA512:
6
- metadata.gz: 6c803ff4e4a54f80fd99fbd10ee8ae18b9db6a3c85ac12ba7d8da0199fa639fcb812190310735ed36fa2c4c3ddcb7684f57b6a579cd58bb4be6b513e7fa25a87
7
- data.tar.gz: e0df9dc5dacce1342a164a03d9bd462b2d4c2e3acf231a85dbe2297a0d38fd49ea8a8fa39bdec98c89c79e4130e1bb3a7385c2d111ed8d37c4b99c32a6d9854d
6
+ metadata.gz: 5d13573dc45ac55f6aaf478b20a3e74e2d209d37f6c17e826f293aec36ffc568b7952078eb42f9d63753ef42162993b127d11773e2a7afb9fe3558955faf15d1
7
+ data.tar.gz: 5b84920192ef0cd5e13acf1cc433753b3f6f1cc69ce6afa7369404e6ac2bd7394b96b33b22415d5e2de41928c5b0582f9498cbb592d1eb291a651ac6f0e6bb97
data/README.md CHANGED
@@ -6,10 +6,24 @@ You would use either plugin / gem if you wished that when you called `destroy` o
6
6
 
7
7
  ## Installation & Usage
8
8
 
9
- Put this in your Gemfile:
9
+ For Rails 3, please use version 1 of Paranoia:
10
10
 
11
11
  ```ruby
12
- gem 'paranoia'
12
+ gem 'paranoia', '~> 1.0'
13
+ ```
14
+
15
+ For Rails 4, please use version 2 of Paranoia:
16
+
17
+ ```ruby
18
+ gem 'paranoia', '~> 2.0'
19
+ ```
20
+
21
+ Of course you can install this from GitHub as well:
22
+
23
+ ```ruby
24
+ gem 'paranoia', :github => 'radar/paranoia', :branch => 'master'
25
+ # or
26
+ gem 'paranoia', :github => 'radar/paranoia', :branch => 'rails-4'
13
27
  ```
14
28
 
15
29
  Then run:
@@ -7,11 +7,11 @@ module Paranoia
7
7
  def paranoid? ; true ; end
8
8
 
9
9
  def only_deleted
10
- all.tap { |x| x.default_scoped = false }.where("#{self.table_name}.deleted_at is not null")
10
+ scoped.tap { |x| x.default_scoped = false }.where("#{self.table_name}.deleted_at is not null")
11
11
  end
12
12
 
13
13
  def with_deleted
14
- all.tap { |x| x.default_scoped = false }
14
+ scoped.tap { |x| x.default_scoped = false }
15
15
  end
16
16
  end
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Paranoia
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paranoia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - radarlistener@gmail.com