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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a29091df2b68f6d2065f71323bedfa44a7ebbdbdb705d7507052ece8a14d34a2
4
- data.tar.gz: 7f6bda8cadbac3e311af2609195579aa555ceb4065bb315b8b85ead190221891
3
+ metadata.gz: 0e5c934c9d432283a84fd8eb80b2f547b1dd94346e0de9ae3ceb9ef1d5736e35
4
+ data.tar.gz: 2e7d03165f7d20a2f0f44540b6c0dd6508d25813d65a33c0c62fea84cfeab241
5
5
  SHA512:
6
- metadata.gz: f2e3f9f4ad9c9ffe648a0ceefb73061a3279e22418f75cff587c9cc117ca7cc7988252c2c37d17cd103b1dfd1e37400f1bcd48988eb7be5f67fd20b412dad0c1
7
- data.tar.gz: 730ad8f5cc4ca55d7c2eda8d647b964687acebfcd24184e2522e7db1b417cdfa26a9374c63e4bda49508acc83a917441deb77a2f766c2c914b8fa71fc13386e6
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.9.1'.freeze
2
+ VERSION = '2.9.3'.freeze
3
3
  end
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.1
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: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails