acts_as_published 0.0.2.pre → 0.0.3.pre
Sign up to get free protection for your applications and to get access to all the features.
@@ -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?
|
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:
|
4
|
+
hash: 961915976
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 3
|
10
10
|
- pre
|
11
|
-
version: 0.0.
|
11
|
+
version: 0.0.3.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Roberto Vasquez Angel
|