acts_as_status_for 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/acts_as_status_for.gemspec +1 -1
- data/lib/acts_as_status_for.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.6
|
data/acts_as_status_for.gemspec
CHANGED
data/lib/acts_as_status_for.rb
CHANGED
@@ -34,9 +34,9 @@ module ActsAsStatusFor
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def statuses_including(status_list)
|
37
|
-
has_condition = self
|
37
|
+
has_condition = self
|
38
38
|
status_list.each do |state|
|
39
|
-
has_condition = has_condition.where(self.
|
39
|
+
has_condition = has_condition.where(self.arel_table["#{state}_at".to_sym].not_eq(nil))
|
40
40
|
end
|
41
41
|
has_condition
|
42
42
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: acts_as_status_for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.0.
|
5
|
+
version: 3.0.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Curtis Schofield
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
hash:
|
119
|
+
hash: 531728891628942974
|
120
120
|
segments:
|
121
121
|
- 0
|
122
122
|
version: "0"
|