plutonium 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plutonium/core/controllers/base.rb +2 -1
- data/lib/plutonium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5613f3f21b909b90355d61dd75e5fe19554451e742bc65484dce87fcd99d3c55
|
4
|
+
data.tar.gz: 37b0fe5f8d09973f410b386e9648de5d55b6a37b1291a8dc80d83221b3126504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 455e471891a69946523afa54b1ce81bf7032add875887094225bd25ddfd884cf71fe8c2cf198ce7ef88d842b2edf7277b3baec36f73b11d45c9a2c62d020fef3
|
7
|
+
data.tar.gz: ba54e184b43db4094905938420a6573057a27b217ec376722fa5be97c403f7e3096828f0532e23da014f81e0e484c11bd3cd6807086291df89ce8c2c663d4c6b
|
@@ -65,7 +65,7 @@ module Plutonium
|
|
65
65
|
url_args = {**kwargs, action: action}.compact
|
66
66
|
|
67
67
|
controller_chain = [current_package.to_s]
|
68
|
-
[
|
68
|
+
[*args].compact.each_with_index do |element, index|
|
69
69
|
if element.is_a?(Class)
|
70
70
|
controller_chain << element.to_s.pluralize
|
71
71
|
else
|
@@ -80,6 +80,7 @@ module Plutonium
|
|
80
80
|
end
|
81
81
|
url_args[:controller] = "/#{controller_chain.join("::").underscore}"
|
82
82
|
|
83
|
+
url_args[:"#{parent.model_name.singular_route_key}_id"] = parent.to_param if parent.present?
|
83
84
|
if scoped_to_entity? && scoped_entity_strategy == :path
|
84
85
|
url_args[scoped_entity_param_key] = current_scoped_entity
|
85
86
|
end
|
data/lib/plutonium/version.rb
CHANGED