tension 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tension/environment.rb +3 -11
- data/lib/tension/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b25b44ab03279d7f615039ff68af05f90938db
|
4
|
+
data.tar.gz: 1cc11db047e788ec6e2588bfded8038e8845eb63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1222f9a47a84c9ec680514d44bf980247b47893af75ff1a79a326c0da18512b7c3f0eea2e0f80c3839ee716503630d59d2bd25771f75fd2fd24f85afc0df277
|
7
|
+
data.tar.gz: 53cc3417937484fc3c18d71af10226e9f1b6e831544ab8911bd21a6e4f038f39c5517607333ce0d732a7046bfbc5d98e6a8b4b7e1209f046db2b40c5ddfa0971
|
data/lib/tension/environment.rb
CHANGED
@@ -60,17 +60,9 @@ module Tension
|
|
60
60
|
# configured GET routes.
|
61
61
|
#
|
62
62
|
def configured_get_defaults
|
63
|
-
@configured_get_defaults ||=
|
64
|
-
|
65
|
-
|
66
|
-
end
|
67
|
-
|
68
|
-
@configured_get_defaults = get_routes.map do |route|
|
69
|
-
route.defaults unless route.defaults.empty?
|
70
|
-
end
|
71
|
-
|
72
|
-
@configured_get_defaults.compact!
|
73
|
-
end
|
63
|
+
@configured_get_defaults ||= Rails.application.routes.routes.map do |route|
|
64
|
+
route.defaults if route.verb.match("GET") && !route.defaults.empty?
|
65
|
+
end.compact
|
74
66
|
end
|
75
67
|
|
76
68
|
end
|
data/lib/tension/version.rb
CHANGED