awesome_nested_set 3.1.0 → 3.1.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: ddb25974895907e5a9dd2e701894678e7f14f338
4
- data.tar.gz: 806590f9ab37cbc3756f15e613b4ae6226cab542
3
+ metadata.gz: 7b5aa9a8f785705dbab9b31c76596fb6094db51c
4
+ data.tar.gz: ad5e1df7600ccc0c475daf39ce765016ba0493d0
5
5
  SHA512:
6
- metadata.gz: d2e80c6b55ce284b9e151a1a4ba02246284cd1718e3aea16f3a5cb5419cfb4743c826537ceb0a0f0ae2f735eaa177f991b1b0035de6acb99e4357acedca74584
7
- data.tar.gz: 08bc67738a4b4401aa49bcb9ef6098b0361e10d3bb2b4e916dd69f58020c7a994a7c0db6cb428bcf1fbfbefd567690c45f8b89b17ed83d953f4d800125c770c1
6
+ metadata.gz: 2aebdeeee003cd9201fa2711c474adff48d5d4a82546cc2e3ed5f4d837d5e9e2214aef34c9507ec22f2cf6b0e8dd95b97055b459704e2006a84e864069792973
7
+ data.tar.gz: 296d1586a9c3900966b9a1521564240624077bd5499a08a1cd33e6255f8bea4ac04b736adb95c65ee294f7ba1cfc6b0443fe298387bc21f05499bb6d50af47d0
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 3.1.0
2
+ * Fix a reloading bug when using default scope [Krzysztof Rybka](https://github.com/krzysiek1507)
3
+
1
4
  3.1.0
2
5
  * Ensure that nested_set queries respect the model's default_scope. [oesgalha](https://github.com/oesgalha)
3
6
  * Add Rails 5 support [Krzysztof Rybka](https://github.com/krzysiek1507)
@@ -264,7 +264,7 @@ module CollectiveIdea #:nodoc:
264
264
  if target.is_a? self.class.base_class
265
265
  target.reload
266
266
  elsif position != :root
267
- nested_set_scope.where(primary_column_name => target).first!
267
+ nested_set_scope_without_default_scope.where(primary_column_name => target).first!
268
268
  end
269
269
  end
270
270
  end
@@ -1,3 +1,3 @@
1
1
  module AwesomeNestedSet
2
- VERSION = '3.1.0' unless defined?(::AwesomeNestedSet::VERSION)
2
+ VERSION = '3.1.1' unless defined?(::AwesomeNestedSet::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-27 00:00:00.000000000 Z
13
+ date: 2016-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord