iord 1.1.1 → 1.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 +4 -4
- data/lib/iord/crud.rb +4 -0
- data/lib/iord/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: 4a17a58e4d8b6751f81ee92843bc38d42c30ad29
|
|
4
|
+
data.tar.gz: 549e3fb34c70b38081c0a090bdb4ace00d180a85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87eeaf603ab5bfd87a2dcafed4595e2e9fa4d34188a908cf8268c92112e5b8153c677ab3a8530e4834e00cd0ab420b57d3154b8ccea065999301494f68eb8467
|
|
7
|
+
data.tar.gz: b67289848b758c44ed88684fce632efcf5c23f1dfefc483c13d1a06292dbfa74871ff04247563d9950e64f3fb7c882cc82911f647fc43d96ba67cc7a9e492c34
|
data/lib/iord/crud.rb
CHANGED
|
@@ -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
|
data/lib/iord/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|