ifd_tools 0.2.9.1 → 0.2.9.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module IfdTools
|
|
14
14
|
add_action_item :except => [:new, :show] do
|
15
15
|
if controller.current_ability.can?(:create, active_admin_config.resource_class_name.constantize)
|
16
16
|
if controller.action_methods.include?('new')
|
17
|
-
link_to(I18n.t('active_admin.new_model', :model => active_admin_config.
|
17
|
+
link_to(I18n.t('active_admin.new_model', :model => active_admin_config.resource_label), new_resource_path)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -23,7 +23,7 @@ module IfdTools
|
|
23
23
|
add_action_item :only => :show do
|
24
24
|
if controller.current_ability.can?(:update, resource)
|
25
25
|
if controller.action_methods.include?('edit')
|
26
|
-
link_to(I18n.t('active_admin.edit_model', :model => active_admin_config.
|
26
|
+
link_to(I18n.t('active_admin.edit_model', :model => active_admin_config.resource_label), edit_resource_path(resource))
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -32,7 +32,7 @@ module IfdTools
|
|
32
32
|
add_action_item :only => :show do
|
33
33
|
if controller.current_ability.can?(:destroy, resource)
|
34
34
|
if controller.action_methods.include?("destroy")
|
35
|
-
link_to(I18n.t('active_admin.delete_model', :model => active_admin_config.
|
35
|
+
link_to(I18n.t('active_admin.delete_model', :model => active_admin_config.resource_label),
|
36
36
|
resource_path(resource),
|
37
37
|
:method => :delete, :confirm => I18n.t('active_admin.delete_confirmation'))
|
38
38
|
end
|
data/lib/ifd_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifd_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.9.
|
4
|
+
version: 0.2.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -460,7 +460,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
460
460
|
version: '0'
|
461
461
|
segments:
|
462
462
|
- 0
|
463
|
-
hash:
|
463
|
+
hash: -2798756319842595072
|
464
464
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
465
465
|
none: false
|
466
466
|
requirements:
|
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
469
|
version: '0'
|
470
470
|
segments:
|
471
471
|
- 0
|
472
|
-
hash:
|
472
|
+
hash: -2798756319842595072
|
473
473
|
requirements: []
|
474
474
|
rubyforge_project:
|
475
475
|
rubygems_version: 1.8.24
|