towsta 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/towsta/version.rb +1 -1
- data/lib/towsta/vertical.rb +9 -1
- metadata +2 -2
data/lib/towsta/version.rb
CHANGED
data/lib/towsta/vertical.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Towsta
|
|
|
18
18
|
include R18n::Helpers
|
|
19
19
|
|
|
20
20
|
def i18n attr
|
|
21
|
-
self.send
|
|
21
|
+
self.send :"#{attr.to_s}_#{R18n.get.locales.first.code}"
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def to_mail
|
|
@@ -127,6 +127,14 @@ module Towsta
|
|
|
127
127
|
end
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
+
def method_missing(meth, *args, &block)
|
|
131
|
+
begin
|
|
132
|
+
return self.i18n meth.to_sym
|
|
133
|
+
rescue
|
|
134
|
+
super
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
130
138
|
end
|
|
131
139
|
klass.all = []
|
|
132
140
|
klass.count = args[:count]
|