action_links 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ActionLinks
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
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.0
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-07-13 00:00:00.000000000 Z
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