message_train 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/app/models/message_train/conversation.rb +8 -1
- data/message_train.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68be4bba31ecac00d984482f1796ace9d8d6821c
|
4
|
+
data.tar.gz: 694148b8df9580d917cdeb3b4c327957e1591fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91995e0c25c66f5c90b313665f06ef91f7299d250e4e1f9c8530d7c160d1e5fd3078a1063c0abc0056157fa6007f16c3e20e65af48afc2803e718f27401a04e0
|
7
|
+
data.tar.gz: a387f17981384de98e0386cbcee47a15a15079c0f9ffa4318335174080d5de1b26248d45afd3c3278af587c86092dbd0c9141717f4dd06768ffde094bf36eb30
|
data/README.rdoc
CHANGED
@@ -73,7 +73,7 @@ And in your initializer:
|
|
73
73
|
== View Helpers
|
74
74
|
|
75
75
|
=== Boxes
|
76
|
-
[boxes_dropdown_list] Bootstrap navigation dropdown list of boxes
|
76
|
+
[boxes_dropdown_list] Bootstrap navigation dropdown list of boxes. (Be sure to check that user is signed in before calling, or you'll get errors.)
|
77
77
|
[boxes_widget] Bootstrap widget with list of boxes
|
78
78
|
[box_nav_item(box)] Bootstrap list item for one box
|
79
79
|
[box_list_item(box)] Bootstrap list item for one box
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
@@ -7,7 +7,14 @@ module MessageTrain
|
|
7
7
|
# Scopes
|
8
8
|
default_scope { order('updated_at DESC') }
|
9
9
|
scope :ignored, ->(participant) { where('id IN (?)', ignored_ids_for(participant))}
|
10
|
-
scope :unignored, ->(participant) {
|
10
|
+
scope :unignored, ->(participant) {
|
11
|
+
ignored_ids = ignored_ids_for(participant)
|
12
|
+
if ignored_ids.empty?
|
13
|
+
all
|
14
|
+
else
|
15
|
+
where('NOT(id IN (?))', ignored_ids)
|
16
|
+
end
|
17
|
+
}
|
11
18
|
scope :filter_by_receipt_method_ids, ->(receipt_method, participant) {
|
12
19
|
all.collect { |x| x.receipts.send(receipt_method, participant).conversation_ids }.flatten.uniq
|
13
20
|
}
|
data/message_train.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: message_train 0.1.
|
5
|
+
# stub: message_train 0.1.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "message_train"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|