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 CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{event_horizon}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jiri Zajpt"]
@@ -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 date, :format => :short}"
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 date, :format => :short
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jiri Zajpt