volt 0.8.6 → 0.8.7
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/page.rb +2 -1
- data/lib/volt/server/html_parser/view_scope.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: 0a2b7ff74b47831d3c51141f0160710989032615
|
4
|
+
data.tar.gz: ab454d282bf8201f88ea15c47201adbe3b57a2d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9b1a50ea969c9c2b4bdc7f6c72c41a45585455bd92a1cb33b2b84e631756fb6f215d6a57b96e84ddb391c5b2e8d8d1f4b271d87c29fe0f91f737aca30d28d01
|
7
|
+
data.tar.gz: d6e3dfb009545c36d6a12e74551ef15b6ed95e839e0caf6b4eb1e5c459d3e2916b52b0a0bee31219b8fbd49f135bf73c8743c4cc24b47ca2adf0b7c7692fbe33
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.7
|
data/lib/volt/page/page.rb
CHANGED
@@ -138,7 +138,8 @@ class Page
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def add_model(model_name)
|
141
|
-
|
141
|
+
model_name = model_name.camelize
|
142
|
+
@model_classes[model_name] = Object.const_get(model_name)
|
142
143
|
end
|
143
144
|
|
144
145
|
def add_template(name, template, bindings)
|
@@ -121,7 +121,7 @@ class ViewScope
|
|
121
121
|
# Multiple bindings
|
122
122
|
elsif parts.size == 1 && binding_count == 1
|
123
123
|
# A single binding
|
124
|
-
getter = value[
|
124
|
+
getter = value[2...-2].strip
|
125
125
|
data_hash << "#{name.inspect} => Proc.new { #{getter} }"
|
126
126
|
|
127
127
|
setter = getter_to_setter(getter)
|