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 +4 -4
- data/CHANGELOG +3 -0
- data/lib/awesome_nested_set/model.rb +1 -1
- data/lib/awesome_nested_set/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: 7b5aa9a8f785705dbab9b31c76596fb6094db51c
|
4
|
+
data.tar.gz: ad5e1df7600ccc0c475daf39ce765016ba0493d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
267
|
+
nested_set_scope_without_default_scope.where(primary_column_name => target).first!
|
268
268
|
end
|
269
269
|
end
|
270
270
|
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.
|
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-
|
13
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|