event_horizon 0.0.7 → 0.0.8
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 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/event_horizon.gemspec
CHANGED
@@ -11,11 +11,11 @@ module EventHorizonHelper
|
|
11
11
|
end
|
12
12
|
if key.is_a? Array
|
13
13
|
day = I18n.t("date.day_names")[key.last]
|
14
|
-
"#{day}, #{l
|
14
|
+
"#{day}, #{I18n.l(date, :format => :short)}"
|
15
15
|
elsif key
|
16
16
|
key && I18n.t("helpers.relativize_date.#{key}")
|
17
17
|
else
|
18
|
-
l
|
18
|
+
I18n.l(date, :format => :short)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -27,6 +27,7 @@ module EventHorizonHelper
|
|
27
27
|
|
28
28
|
def event_interpolations(event)
|
29
29
|
interpolations = event.params.inject({}) { |h, (k, v)| h[k.to_sym] = v; h }
|
30
|
+
interpolations[:user] = event.user.to_s
|
30
31
|
if interpolations[:name] && event.document.present?
|
31
32
|
method = :"link_to_#{event.document_type.downcase}"
|
32
33
|
interpolations[:name] = send(method, event.document) if respond_to?(method)
|