little_wheels 0.0.3 → 0.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/little_wheels.rb +3 -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: 1239b1153781bf67297befc609b59aaf899cb14cf1626d1c69501a98dde62997
|
4
|
+
data.tar.gz: 56876fa5ab4ab7a25386fd7ea876346f2f5dcf0119357b695219259a3dc01f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff56bd1ad67c62cf809fb7fd41989830df7a5e015cae8dcf82a6541ba8289e2316b4fc9a16195f42cf641d1e5380bf6a7a4d53212ad1478defbe47911038bec
|
7
|
+
data.tar.gz: ec0e843354fe1d928d9cebbea6be21655afe9bcf6559c0047bc4e4109e0160374f0b1a924458ad2133dc4f64b863f6be91811533a9e8c20341f6df73312b9a27
|
data/lib/little_wheels.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module LittleWheels
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.5"
|
3
3
|
|
4
4
|
class Component
|
5
5
|
def t(template, **locals)
|
@@ -11,14 +11,14 @@ module LittleWheels
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def to_s
|
14
|
-
t!("shared/#{
|
14
|
+
self.class.const_defined?("TEMPLATE") ? t(self.class.const_get("TEMPLATE"), c: self) : t!("shared/#{default_template_name}", c: self)
|
15
15
|
end
|
16
16
|
|
17
17
|
def renderer
|
18
18
|
ApplicationController
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
21
|
+
def default_template_name
|
22
22
|
self.class.name.underscore
|
23
23
|
end
|
24
24
|
end
|