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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07e96e05a9ae8a0c782867865c4b12641fc4f178
4
- data.tar.gz: 680ad65a0e4e13be0ea6aff3a4e67145cba761fc
3
+ metadata.gz: d76afd0685f5954987b398a40053792c420f9582
4
+ data.tar.gz: b76db481f1c1ad1ba18e3cc661bae48812472b54
5
5
  SHA512:
6
- metadata.gz: d3d2fbdbbcd54ff20a16f66bb308764a97f532bea475000638b5866470775bca8d390de9eeb1b4b344d398ac3de9aa1339052e0a201b2b919086e2ca654b9752
7
- data.tar.gz: 535787d615ac93871d370ef2323dfacbcdb634f629cdf0e635ae579c5659e01f639013915076f2bbaf63d0dea56fae89366bf9f21d933529495d00562021a98c
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
- default_order :published_at, :desc
5
+ datatable do
6
+ default_order :published_at, :desc
6
7
 
7
- table_column :published_at
8
- table_column :id, :visible => false
8
+ table_column :published_at
9
+ table_column :id, :visible => false
9
10
 
10
- table_column :title
11
- table_column :category, :filter => {:type => :select, :values => EffectivePosts.categories }
11
+ table_column :title
12
+ table_column :category, :filter => {:type => :select, :values => EffectivePosts.categories }
12
13
 
13
- table_column :draft
14
+ table_column :draft
14
15
 
15
- table_column :actions, :sortable => false, :filter => false, :partial => '/admin/posts/actions'
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
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.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: 0.4.0
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-05-19 00:00:00.000000000 Z
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: 1.3.0
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: 1.3.0
138
+ version: 2.0.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: effective_regions
141
141
  requirement: !ruby/object:Gem::Requirement