effective_posts 2.9.0 → 2.9.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c77c59d3451a65aacd650d5f506439340882d31a663b717840e407e96d95a0'
|
4
|
+
data.tar.gz: a532d12cb6cc88e340d15eed060cc7b9c73f2545d143eccf21fc9447b1c97636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9240ee6cf63ffa272d376a87dd1f7c38ad8b578cf60e2cf588145526389b4276f2d2159655c21ed1ef8947246b69e4f9d73b875bc8e1439e334ea1f1a991b4
|
7
|
+
data.tar.gz: 5b91f2d6ad69728a327e5946db2a9a8db4dd42e1d7cf0777e7b2c219a1da0c29b30183a8cd34ae1c1f163bcdefc6b2a16463fe26effb7b87fce53c3fde167648
|
@@ -47,10 +47,6 @@ module Effective
|
|
47
47
|
@posts ||= Effective::Post.posts(user: current_user, unpublished: admin, archived: admin)
|
48
48
|
@post = @posts.find(params[:id])
|
49
49
|
|
50
|
-
if @post.respond_to?(:roles_permit?)
|
51
|
-
raise Effective::AccessDenied.new('Access Denied', :show, @post) unless @post.roles_permit?(current_user)
|
52
|
-
end
|
53
|
-
|
54
50
|
EffectiveResources.authorize!(self, :show, @post)
|
55
51
|
|
56
52
|
if admin
|
@@ -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
|
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.2
|
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
|