event_horizon 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/event_horizon.gemspec +1 -1
- data/lib/event_horizon/helpers/event_horizon_helper.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/event_horizon.gemspec
CHANGED
@@ -10,10 +10,10 @@ module EventHorizonHelper
|
|
10
10
|
when ago..Date.today; [:days, date.wday]
|
11
11
|
end
|
12
12
|
if key.is_a? Array
|
13
|
-
day = t("date.day_names")[key.last]
|
13
|
+
day = I18n.t("date.day_names")[key.last]
|
14
14
|
"#{day}, #{l date, :format => :short}"
|
15
15
|
elsif key
|
16
|
-
key && t("helpers.
|
16
|
+
key && I18n.t("helpers.relativize_date.#{key}")
|
17
17
|
else
|
18
18
|
l date, :format => :short
|
19
19
|
end
|
@@ -22,7 +22,7 @@ module EventHorizonHelper
|
|
22
22
|
def event_description(event)
|
23
23
|
scope = "#{event.document_type.tableize.singularize}.#{event.event_type}"
|
24
24
|
interpolations = event_interpolations(event)
|
25
|
-
t("helpers.
|
25
|
+
I18n.t("helpers.event_description.#{scope}", interpolations).html_safe
|
26
26
|
end
|
27
27
|
|
28
28
|
def event_interpolations(event)
|