rest_framework 0.6.10 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/views/layouts/rest_framework.html.erb +4 -3
- data/lib/rest_framework/controller_mixins/base.rb +2 -2
- 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: 83aa878ffb9690b53552092a99987e67a9930f321c9ca02b97123b003d6c6f89
|
4
|
+
data.tar.gz: d3e61c32bda1e7815822caabcedf508b03eec417f62507539d6d0e128697dc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78e80cba4939aa6bd951f93c055f27a07ff2fa0e6f24fb3bf5edfc3de35297fd6090dc98dbd0b9ecad027d80abb4602c1ebd898ef0ae43ccaf8a22018108d8f
|
7
|
+
data.tar.gz: dc8240f44f4a315d47f47727fac2aae6b1ba8da73c0faecffa3b9e4174709e5d0966e7776aa38893801ff8ec2b83ac60a50f3ff963ad8a4d3873bd077c9f5af8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.12
|
@@ -22,16 +22,17 @@
|
|
22
22
|
<nav>
|
23
23
|
<ol class="breadcrumb">
|
24
24
|
<%
|
25
|
-
breadcrumbs = request.path.split("/").inject([
|
25
|
+
breadcrumbs = request.path.split("/").inject([]) { |breadcrumbs, part|
|
26
26
|
# Ignore blank parts of the path (leading slash or double-slashes).
|
27
27
|
next breadcrumbs if part.blank?
|
28
28
|
|
29
|
-
last_path = breadcrumbs
|
29
|
+
last_path = breadcrumbs.last&.first || "/"
|
30
30
|
breadcrumbs << [
|
31
31
|
[last_path, part].join(last_path[-1] == "/" ? "" : "/"),
|
32
32
|
part,
|
33
33
|
]
|
34
|
-
|
34
|
+
|
35
|
+
next breadcrumbs
|
35
36
|
}
|
36
37
|
%>
|
37
38
|
<% breadcrumbs.each_with_index do |(path, label), i| %>
|
@@ -20,7 +20,7 @@ module RESTFramework::BaseControllerMixin
|
|
20
20
|
RESTFramework::BUILTIN_ACTIONS.merge(
|
21
21
|
RESTFramework::RRF_BUILTIN_ACTIONS,
|
22
22
|
).each do |action, methods|
|
23
|
-
actions[action] = {path: "", methods: methods}
|
23
|
+
actions[action] = {path: "", methods: methods} if self.method_defined?(action)
|
24
24
|
end
|
25
25
|
|
26
26
|
# Add extra actions.
|
@@ -37,7 +37,7 @@ module RESTFramework::BaseControllerMixin
|
|
37
37
|
|
38
38
|
# Start with builtin actions.
|
39
39
|
RESTFramework::BUILTIN_MEMBER_ACTIONS.each do |action, methods|
|
40
|
-
actions[action] = {path: "", methods: methods}
|
40
|
+
actions[action] = {path: "", methods: methods} if self.method_defined?(action)
|
41
41
|
end
|
42
42
|
|
43
43
|
# Add extra actions.
|