little_wheels 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/little_wheels.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a37400151db9a82781155e64c58f32113da3cc43f70750f69df3d00b853738e
|
4
|
+
data.tar.gz: 59680a9acbd26cfae8d8ca2060dc060725c5ed888f74fe275f56d1df769df486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b967d618a45d03ee973b91f76c8a1a0551fdd48faaa37a1c27fa1140d803748e474097bf2b8c11e1e9b34f5c93b262fe0e2f1e1a866c16fbf056f9d76d3da9e8
|
7
|
+
data.tar.gz: 68a10ccd9a63268a615724778232403b2528b9035187d06205ff4eb25e7dfc331defa54835066d1c6587058322f88bed521e2842679ad4937ddbd0b6c915ffbf
|
data/lib/little_wheels.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module LittleWheels
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.13"
|
3
3
|
|
4
4
|
def self.renderer
|
5
5
|
ApplicationController
|
@@ -45,6 +45,10 @@ module LittleWheels
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_s
|
48
|
+
to_html
|
49
|
+
end
|
50
|
+
|
51
|
+
def to_html
|
48
52
|
helpers.capture do
|
49
53
|
if self.class.const_defined?(:TEMPLATE)
|
50
54
|
t(self.class.const_get(:TEMPLATE), c: self, x: self.x )
|
@@ -61,7 +65,7 @@ module LittleWheels
|
|
61
65
|
def slot
|
62
66
|
context = @_slot.binding.receiver
|
63
67
|
|
64
|
-
context.capture
|
68
|
+
context.capture { @_slot.call.to_s }
|
65
69
|
end
|
66
70
|
|
67
71
|
def renderer
|
@@ -81,7 +85,7 @@ module LittleWheels
|
|
81
85
|
end
|
82
86
|
|
83
87
|
def render_in(context)
|
84
|
-
context.render(:inline =>
|
88
|
+
context.render(:inline => to_html)
|
85
89
|
end
|
86
90
|
end
|
87
91
|
end
|