forest_liana 6.5.0 → 6.5.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80bad8b47fd493c2a9684bb7e935d4ed4c5c08bba874f584cec9ed760e0eba44
|
4
|
+
data.tar.gz: b58e450ffd6dd7489245fbcc045bc1828165288ff3b0dfec9796109234052037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e640391b18b829ee89d5ede11dd46f367f00409254c201805d0ca083795f62f8511e273990942f85b1276c2e4fe285ce28b2056d74ebfed887850d515b0666
|
7
|
+
data.tar.gz: 35c7bf49920b9c611f15f1e7dec93fbf2e055746b7de891fb89a26a0a8f20448b5652e28a1efdd0723b903f83b71aa8ffedd4f5741b43a8b163e057d5750f050
|
@@ -57,11 +57,8 @@ module ForestLiana
|
|
57
57
|
|
58
58
|
# smart action permissions are retrieved from the action's endpoint and http_method
|
59
59
|
def get_smart_action_request_info
|
60
|
-
endpoint = request.fullpath
|
61
|
-
# Trim starting '/'
|
62
|
-
endpoint[0] = '' if endpoint[0] == '/'
|
63
60
|
{
|
64
|
-
endpoint:
|
61
|
+
endpoint: request.fullpath,
|
65
62
|
http_method: request.request_method
|
66
63
|
}
|
67
64
|
end
|
@@ -6,7 +6,7 @@ module ForestLiana
|
|
6
6
|
|
7
7
|
return nil unless collection
|
8
8
|
|
9
|
-
collection.actions.find { |action| action.endpoint == endpoint && action.http_method == http_method }
|
9
|
+
collection.actions.find { |action| (action.endpoint == endpoint || "/#{action.endpoint}" == endpoint) && action.http_method == http_method }
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.5.
|
4
|
+
version: 6.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|