flame 4.0.11 → 4.0.12
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 +4 -2
- data/lib/flame/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05d5cb9d08ef29f06faf57b18deb3260adad7c69
|
4
|
+
data.tar.gz: a3ce3c2cc136c764d5b8e20e653d51075554f3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd791c45fdb487e7f3be2a414c6c4efd1ef1748f0c56034b1bd1adddbbd418db88279058a1a12cb3ccb391bb86759b980546212ac72820901f47edb4303f74b
|
7
|
+
data.tar.gz: ed4b47f3c13be3d89cc5b16a60882cc8d1188c9e89405c96351d3510e1b4601723ed06998a3995ac1360c86b2a545e07262018d8031f949605ff23dfb0994ff7
|
data/lib/flame/controller.rb
CHANGED
@@ -83,8 +83,10 @@ module Flame
|
|
83
83
|
|
84
84
|
## Default root path of the controller for requests
|
85
85
|
def default_path
|
86
|
-
|
87
|
-
|
86
|
+
modules = name.underscore.split('/')
|
87
|
+
parts = modules[-1].split('_') - %w(index controller ctrl)
|
88
|
+
return modules[-2] if parts.empty?
|
89
|
+
parts.join('_')
|
88
90
|
end
|
89
91
|
end
|
90
92
|
end
|
data/lib/flame/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|