ar_rollout 0.0.13 → 0.0.14

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.
@@ -54,10 +54,10 @@ module ArRollout
54
54
  def self.all_active(user)
55
55
  return false unless user
56
56
  rollouts = []
57
- Rollout.where("user_id = ? or user_id is NULL", user.id.to_i).any? do |rollout|
57
+ Rollout.where("user_id = ? or user_id is NULL", user.id.to_i).each do |rollout|
58
58
  rollouts << rollout.name if rollout.match?(user)
59
59
  end
60
- rollouts
60
+ rollouts.uniq
61
61
  end
62
62
 
63
63
  def self.degrade_feature(name)
@@ -1,3 +1,3 @@
1
1
  module ArRollout
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_rollout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-09-27 00:00:00.000000000 Z
14
+ date: 2012-09-28 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails