volt 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/volt/page/bindings/template_binding.rb +2 -2
- 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: d96efb29b1e1d0826494bcf23a94019895b00912
|
4
|
+
data.tar.gz: f5d7cc84d1bb843acce90b6615d8cbad4d9d1e8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6277e64d2d6f86d104b59970452749fc7ac00ebf35cac49f4c332e97d8a374e19e77cfdd004f0539c7988205389cc55bb62268989c53aee64d33080e5d2515df
|
7
|
+
data.tar.gz: 167c0616fb8a2927f51e66039df1b13a94069ce2c47db089d032215f4fd2458bd5d54f101d6fda109d1cfeb581c6886f3b4f01a47fb3736e7b70f2b1da27572d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.9
|
@@ -164,12 +164,12 @@ class TemplateBinding < BaseBinding
|
|
164
164
|
|
165
165
|
# Fetch the controller class
|
166
166
|
def get_controller(controller_name)
|
167
|
-
name = controller_name[1].camelize
|
167
|
+
name = controller_name[1].gsub('-', '_').camelize
|
168
168
|
|
169
169
|
# For the home object, we do not need to namespace our controller
|
170
170
|
if controller_name[0] != 'home'
|
171
171
|
# Controller is namespaced, lookup outer module first
|
172
|
-
base_name = controller_name[0].camelize.to_sym
|
172
|
+
base_name = controller_name[0].gsub('-', '_').camelize.to_sym
|
173
173
|
if Object.send(:const_defined?, base_name)
|
174
174
|
base_object = Object.send(:const_get, base_name)
|
175
175
|
end
|