flame 4.0.4 → 4.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/controller.rb +3 -4
- data/lib/flame/router.rb +1 -1
- data/lib/flame/version.rb +3 -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: 5878fea74c5c10e10b235d28652f1443563d174f
|
4
|
+
data.tar.gz: ea1edb1402a414b601952ef852c2aa00d043f41b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e448213ec77f57a6014c315f4dd3cbc5a6477ac8c805820da9bba4c4c13a78bc72a9bdc0c55c3f24fdd2fb06b2aacbfa2891b7bd0dd95412522d62b9e48c401
|
7
|
+
data.tar.gz: a23c186cb889b2473d339e02232e6d52b1d2a30480222e726acd0facd0590d703fb2363667642758cc702d530c4dfe08d3448648e868f3b7c675b23bcb8b215e
|
data/lib/flame/controller.rb
CHANGED
@@ -83,10 +83,9 @@ module Flame
|
|
83
83
|
using GorillaPatch::StringExt
|
84
84
|
|
85
85
|
## Default root path of the controller for requests
|
86
|
-
def default_path
|
87
|
-
|
88
|
-
|
89
|
-
.unshift(nil)[(last ? -1 : 0)..-1].join('/')
|
86
|
+
def default_path
|
87
|
+
parts = name.demodulize.underscore.split('_')
|
88
|
+
(parts - %w(index controller ctrl)).join('_')
|
90
89
|
end
|
91
90
|
end
|
92
91
|
end
|
data/lib/flame/router.rb
CHANGED
data/lib/flame/version.rb
CHANGED