acts_as_status_for 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.0.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_status_for}
8
- s.version = "3.0.5"
8
+ s.version = "3.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Curtis Schofield"]
@@ -34,9 +34,9 @@ module ActsAsStatusFor
34
34
  end
35
35
 
36
36
  def statuses_including(status_list)
37
- has_condition = self.class
37
+ has_condition = self
38
38
  status_list.each do |state|
39
- has_condition = has_condition.where(self.class.arel_table["#{state}_at".to_sym].not_eq(nil))
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
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: -599148864471119160
119
+ hash: 531728891628942974
120
120
  segments:
121
121
  - 0
122
122
  version: "0"