activerecord_nested_scope 1.0.0 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b76e612525e8f4409bdf8f89a0b8451df5de9651
|
4
|
+
data.tar.gz: 4a17a65653f1809dd4104a2cbb5710dd31503d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08365cd0dbccd23a4a09b994e0cc2b197de117fc2077b660cf2287738f28e3f8d97eb1b9ab0d28faa6bcbd5b2015a26687b7517da95bcefba86ebc225b7f42c2'
|
7
|
+
data.tar.gz: 35f13fa1be4f5b04722fa1d99f736fa3b5cb8b1477f4e2c54e1832543deb034e6e4f37ff9ebc4efdc2771ebe04e8a4ef69ac8e603e87ff01e6cd6707e6455511
|
@@ -64,7 +64,7 @@ module ActiveRecordNestedScope
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def root_relation(klass)
|
67
|
-
if @args.is_a?(Integer) || @args.is_a?(ActiveRecord::Base)
|
67
|
+
if @args.is_a?(Integer) || @args.is_a?(Array) || @args.is_a?(ActiveRecord::Base)
|
68
68
|
klass.where(klass.primary_key => @args)
|
69
69
|
elsif @args.is_a?(ActiveRecord::Relation)
|
70
70
|
klass.all.merge(@args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_nested_scope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.5.2.2
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: An ActiveRecord extension to build nested scopes
|