wco_email 0.1.1.66 → 0.1.1.67

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: baf88fb18ff9b70d50132024c511a6b366c81b39d3df0e339f1aef20ab156576
4
- data.tar.gz: eb9c57ec9c169b33dc8ee5cc3669227c3de1fcdc5c99ee7cd5583851bbeb01d8
3
+ metadata.gz: 2e9d0992b1efa5fb847eead2fac04d003d5ae0c9f490c8e2cd2ab1d3930381bc
4
+ data.tar.gz: 2fff9353f6d728e57e684e05932acf84eb6bb47f8d64cbc925ca5412d48b1d05
5
5
  SHA512:
6
- metadata.gz: 4b83ae7309c42dd3b6088133f34bf7417d169154d3e7b75f4ae0f2b70b845d667048769e865529fa17e243a8a2383fc360da25c1a57c5aaba7967f6a8f813100
7
- data.tar.gz: a9460e58fd2413f350a812118dca16768ee2f2a156d3189f00cb79977d9f402badf69266cfbedb688444c1417192ed8313fc96e84b05eac9981f0bd47db3c43e
6
+ metadata.gz: 8a8e596aa3abe76f2893614a99a5017798248c076a78e6cbf96ed112ba11bebcb15f5e8915aab7bf2b2710661eaa9f3313162911e3ff1e72bae198886e92ae1d
7
+ data.tar.gz: e29d2c0e6371e4904e7c9cf083fdb32a281cfa5b72a94fcd81d23b5d36adaa7094903fff322e432361cd8ef3357996b9edc9af10606677d31813caa54183542e
@@ -46,7 +46,9 @@ class WcoEmail::ContextsController < WcoEmail::ApplicationController
46
46
 
47
47
  def index
48
48
  authorize! :index, WcoEmail::Context
49
- @ctxs = WcoEmail::Context.all.order_by( sent_at: :desc, send_at: :desc
49
+ @ctxs = WcoEmail::Context.where(
50
+ :send_at.ne => nil, sent_at: nil
51
+ ).order_by( sent_at: :desc, send_at: :desc
50
52
  ).page( params[:ctxs_page]
51
53
  ).per( current_profile.per_page )
52
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.66
4
+ version: 0.1.1.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev