iord 1.1.1 → 1.1.2

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: d5f2a9fba72fd74a3ce96c9948c6ced39c2c76a3
4
- data.tar.gz: 33443c64e3eb4e9055e4adf0b3da238ccaa03456
3
+ metadata.gz: 4a17a58e4d8b6751f81ee92843bc38d42c30ad29
4
+ data.tar.gz: 549e3fb34c70b38081c0a090bdb4ace00d180a85
5
5
  SHA512:
6
- metadata.gz: 283113675777a9f0f4b0bedb28a417268f4d0e9714825b2264adcf25c6a770b60a6dc80c5c7981cb3305d4a63471dad0b8ed624697d133b908fa88a25c1c9dda
7
- data.tar.gz: e8c71935a32bdce77b274a3089e54a38d2762ee273ef54b633cd5ddcbcd6cc1de66ef5a701713f29837e602d18bccc59c214abfe8e7c6e906e14411202f695e4
6
+ metadata.gz: 87eeaf603ab5bfd87a2dcafed4595e2e9fa4d34188a908cf8268c92112e5b8153c677ab3a8530e4834e00cd0ab420b57d3154b8ccea065999301494f68eb8467
7
+ data.tar.gz: b67289848b758c44ed88684fce632efcf5c23f1dfefc483c13d1a06292dbfa74871ff04247563d9950e64f3fb7c882cc82911f647fc43d96ba67cc7a9e492c34
@@ -19,6 +19,10 @@ module Iord
19
19
 
20
20
  def create_collection
21
21
  collection = resource_class.all
22
+ if default(:unscoped)
23
+ collection = collection.unscoped
24
+ collection = collection.where(deleted_at: nil) if defined?(Mongoid::Paranoia) && resource_class < Mongoid::Paranoia
25
+ end
22
26
  collection = collection.unscoped if default(:unscoped)
23
27
  collection.includes(*Array(default(:includes))) if default(:includes)
24
28
  collection
@@ -1,4 +1,4 @@
1
1
  module Iord
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Planquart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails