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.
- data/lib/i18n_rails_helpers/version.rb +1 -1
- data/lib/list_link_helpers.rb +2 -2
- metadata +5 -5
data/lib/list_link_helpers.rb
CHANGED
@@ -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.
|
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(
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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-
|
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.
|
68
|
+
rubygems_version: 1.8.15
|
69
69
|
signing_key:
|
70
70
|
specification_version: 3
|
71
71
|
summary: I18n Rails helpers
|