effective_posts 2.9.1 → 2.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/datatables/effective_posts_datatable.rb +0 -7
- data/config/routes.rb +3 -6
- data/lib/effective_posts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5c934c9d432283a84fd8eb80b2f547b1dd94346e0de9ae3ceb9ef1d5736e35
|
4
|
+
data.tar.gz: 2e7d03165f7d20a2f0f44540b6c0dd6508d25813d65a33c0c62fea84cfeab241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd581f9b701089d15cb65efd51d449da678dac52860ffefbe7bf62400221f4cf118b58ff584b07285ffe46be7f5d34e368c9a22bd81bd64d5a310828de475b2c
|
7
|
+
data.tar.gz: bd70bad9e560687f68101d3ed49ba7b98018053894326ad0dcf33728eee613761623b97f2e8affc3d1814dbf5cbe5064cfefd100b490c852777ed5c311f9d511
|
@@ -1,9 +1,4 @@
|
|
1
1
|
class EffectivePostsDatatable < Effective::Datatable
|
2
|
-
bulk_actions do
|
3
|
-
bulk_action('Archive selected', effective_posts.bulk_archive_admin_posts_path)
|
4
|
-
bulk_action('Unarchive selected', effective_posts.bulk_unarchive_admin_posts_path)
|
5
|
-
end
|
6
|
-
|
7
2
|
filters do
|
8
3
|
scope :unarchived, label: 'All'
|
9
4
|
scope :published
|
@@ -16,8 +11,6 @@ class EffectivePostsDatatable < Effective::Datatable
|
|
16
11
|
datatable do
|
17
12
|
order :published_start_at, :desc
|
18
13
|
|
19
|
-
bulk_actions_col
|
20
|
-
|
21
14
|
col :id, visible: false
|
22
15
|
|
23
16
|
col :title
|
data/config/routes.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
EffectivePosts::Engine.routes.draw do
|
2
|
+
acts_as_archived
|
3
|
+
|
2
4
|
namespace :admin do
|
3
|
-
resources :posts, except: [:show] do
|
5
|
+
resources :posts, except: [:show], concerns: :acts_as_archived do
|
4
6
|
post :approve, on: :member
|
5
|
-
|
6
|
-
post :archive, on: :member
|
7
|
-
post :unarchive, on: :member
|
8
|
-
post :bulk_archive, on: :collection
|
9
|
-
post :bulk_unarchive, on: :collection
|
10
7
|
end
|
11
8
|
end
|
12
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|