effective_posts 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/datatables/posts.rb +9 -7
- data/lib/effective_posts/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76afd0685f5954987b398a40053792c420f9582
|
4
|
+
data.tar.gz: b76db481f1c1ad1ba18e3cc661bae48812472b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8ceb1a409fa2c3451fa71ece62b9b9528a0623a7210e118439b12afafab130d3513e28b1428d109bc2ade9d12c6dd9569d3c16c9e4689e6ae466a13fb759b7
|
7
|
+
data.tar.gz: bdc091332a4a785b31cac4f17c7d68bbc5dc24750c041bd19474aaf605757a9800e9c68897120566db007782d238b6e90f43dfa4c20912c92e41f54510dcc411
|
@@ -2,17 +2,19 @@ if defined?(EffectiveDatatables)
|
|
2
2
|
module Effective
|
3
3
|
module Datatables
|
4
4
|
class Posts < Effective::Datatable
|
5
|
-
|
5
|
+
datatable do
|
6
|
+
default_order :published_at, :desc
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
table_column :published_at
|
9
|
+
table_column :id, :visible => false
|
9
10
|
|
10
|
-
|
11
|
-
|
11
|
+
table_column :title
|
12
|
+
table_column :category, :filter => {:type => :select, :values => EffectivePosts.categories }
|
12
13
|
|
13
|
-
|
14
|
+
table_column :draft
|
14
15
|
|
15
|
-
|
16
|
+
table_column :actions, :sortable => false, :filter => false, :partial => '/admin/posts/actions'
|
17
|
+
end
|
16
18
|
|
17
19
|
def collection
|
18
20
|
Effective::Post.all
|
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: 0.4.
|
4
|
+
version: 0.4.1
|
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: 2015-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 2.0.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 2.0.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: effective_regions
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|