acts_as_published 0.0.2.pre → 0.0.3.pre

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.
@@ -9,6 +9,13 @@ module ActsAsPublished
9
9
  end
10
10
  end
11
11
 
12
+ batch_action :toggle_published do |selection|
13
+ active_admin_config.resource_class.find(selection).each do |item|
14
+ item.toggle_published!
15
+ end
16
+ redirect_to :back
17
+ end
18
+
12
19
  member_action :toggle_published do
13
20
  resource.toggle_published!
14
21
  if resource.published?
@@ -1,3 +1,3 @@
1
1
  module ActsAsPublished
2
- VERSION = '0.0.2.pre'
2
+ VERSION = '0.0.3.pre'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_published
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915980
4
+ hash: 961915976
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
9
+ - 3
10
10
  - pre
11
- version: 0.0.2.pre
11
+ version: 0.0.3.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel