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: 166d91ad4f5ed349c3bade4dc78b7b03a5d23dbd
4
- data.tar.gz: 41a8f213a1b5c800ecf0ab98a986a6f2f90e5e48
3
+ metadata.gz: b76e612525e8f4409bdf8f89a0b8451df5de9651
4
+ data.tar.gz: 4a17a65653f1809dd4104a2cbb5710dd31503d67
5
5
  SHA512:
6
- metadata.gz: ae33da5f637a1a078f147a5b9f0a14152c73e01a046f5f8a71c57475d111be6c4f686d3a4900582c3583954d579cf03944e8ec8b36c71742ac829204185169c2
7
- data.tar.gz: 406a41e50108e30684e84c69fc89347603f8b612dd56a611a01f5509521b2d7aea7bfb0968b4c1597cb5951a6bdd9c0d847f27e25d94d2664e5ec59e3b5a9c83
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)
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordNestedScope
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
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.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-02-24 00:00:00.000000000 Z
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.6.12
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