i18n_rails_helpers 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module I18nRailsHelpers
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -13,7 +13,7 @@ module ListLinkHelpers
13
13
  # Resource and Model setup
14
14
  # Support nested resources
15
15
  if resource_or_model.is_a? Array
16
- main_resource_or_model = resource_or_model.first
16
+ main_resource_or_model = resource_or_model.last
17
17
  else
18
18
  main_resource_or_model = resource_or_model
19
19
  end
@@ -37,7 +37,7 @@ module ListLinkHelpers
37
37
  path = polymorphic_path(resource_or_model)
38
38
  when 'delete'
39
39
  path = polymorphic_path(resource_or_model)
40
- options.merge!(:confirm => t_confirm_delete(resource), :method => :delete)
40
+ options.merge!(:confirm => t_confirm_delete(main_resource_or_model), :method => :delete)
41
41
  else
42
42
  path = polymorphic_path(resource_or_model, :action => action)
43
43
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_rails_helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-05 00:00:00 Z
18
+ date: 2012-07-16 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Rails i18n view helpers for things like crud actions, models and and attributes.
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements: []
66
66
 
67
67
  rubyforge_project:
68
- rubygems_version: 1.8.10
68
+ rubygems_version: 1.8.15
69
69
  signing_key:
70
70
  specification_version: 3
71
71
  summary: I18n Rails helpers