action_links 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/action_links/helpers.rb +3 -1
- data/lib/action_links/version.rb +1 -1
- metadata +2 -2
data/lib/action_links/helpers.rb
CHANGED
@@ -34,7 +34,7 @@ module ActionLinks
|
|
34
34
|
nil
|
35
35
|
end
|
36
36
|
|
37
|
-
def bootstrap_action_links(object_or_array, options = {})
|
37
|
+
def bootstrap_action_links(object_or_array, options = {}, &block)
|
38
38
|
css_classes = options[:bootstrap_action_classes] || ActionLinks.config.bootstrap_action_classes
|
39
39
|
icons = options[:bootstrap_action_icons] || ActionLinks.config.bootstrap_action_icons
|
40
40
|
|
@@ -50,6 +50,8 @@ module ActionLinks
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
links << capture(&block) if block_given?
|
54
|
+
|
53
55
|
links.join("\n").html_safe
|
54
56
|
end
|
55
57
|
|
data/lib/action_links/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_links
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-09-21 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Automatically includes action links (show, edit, destroy) based on the
|
16
16
|
current page and user roles/permissions
|