effective_posts 1.1.9 → 1.1.10

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: c3e1d79781f750dc9d0fc4c4e22a4842507f3e5e33779c6c0e22316fd3f5e750
4
- data.tar.gz: 9365a6e511ef93c18abfc6b21ce09b158b74af42987954c035d9dfa812451aff
3
+ metadata.gz: 5cfed91d21309be6bb55b1ddb763f7db0c0b0f84df48e58e1cebeeafd057cb0d
4
+ data.tar.gz: 9efd9f25e107f6d4b3d3b9a04738b4e9e4f8453f341cb06d29ac7472d5740fe1
5
5
  SHA512:
6
- metadata.gz: 49086d49debe0b5d918389e7b88e273bfc7c68abd73a05aaffa59ea4bd1e05c4c25ecddfba97643426efc3ad6597a3f88fb7dbb19629cfa3db0205c4cd42a4d3
7
- data.tar.gz: 94ad39c97d653ca020b9d39f98b27d199cfb1c8c95f131b6d2440b913dc14c6783bb38bc416c19cfa18ea59cedc798c34bb14dde2bb48c21e0306f79f97c5c7d
6
+ metadata.gz: a8f0693fd417027a7f0fe4e3f783f3ecb1d3db5a54342ee89087d7dff1cf0446b6be1f71e6c12df5edbac579df4e5eeca41da9db10bd3e3e0e7544fa7b6793c4
7
+ data.tar.gz: fa1a3f84a24d1d93b3a86697791589c831d667fba94aa8a048229f84e96a48b39cafe06d8d0598ce864c7f3bb7a5c2e5f89ea50d620ac23b7a387fe68ae02aa8
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '1.1.9'.freeze
2
+ VERSION = '1.1.10'.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: 1.1.9
4
+ version: 1.1.10
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: 2019-12-31 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -143,7 +143,6 @@ files:
143
143
  - app/helpers/effective_truncate_html_helper.rb
144
144
  - app/mailers/effective/posts_mailer.rb
145
145
  - app/models/effective/access_denied.rb
146
- - app/models/effective/datatables/posts.rb
147
146
  - app/models/effective/post.rb
148
147
  - app/models/effective/snippets/read_more_divider.rb
149
148
  - app/views/admin/posts/_actions.html.haml
@@ -1,40 +0,0 @@
1
- if Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
2
- module Effective
3
- module Datatables
4
- class Posts < Effective::Datatable
5
- datatable do
6
- default_order :published_at, :desc
7
-
8
- table_column :published_at
9
- table_column :id, visible: false
10
-
11
- table_column :title
12
- col :slug, visible: false
13
- table_column :category, filter: { type: :select, values: EffectivePosts.categories }
14
-
15
- if EffectivePosts.submissions_enabled
16
- table_column :approved, column: 'NOT(draft)', as: :boolean do |post|
17
- post.draft ? 'No' : 'Yes'
18
- end
19
-
20
- table_column :draft, visible: false
21
- else
22
- table_column :draft
23
- end
24
-
25
- table_column :start_at
26
- table_column :end_at, visible: false
27
- table_column :location, visible: false
28
-
29
- table_column :created_at, label: 'Submitted at', visible: false
30
-
31
- table_column :actions, sortable: false, filter: false, partial: '/admin/posts/actions'
32
- end
33
-
34
- def collection
35
- Effective::Post.all
36
- end
37
- end
38
- end
39
- end
40
- end