ar_rollout 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ar_rollout.rb CHANGED
@@ -93,7 +93,9 @@ module ArRollout
93
93
  return false unless user
94
94
  rollouts = []
95
95
  Rollout.where("user_id = ? or user_id is NULL", user.id.to_i).each do |rollout|
96
- rollouts << rollout.name if rollout.match?(user)
96
+ unless OptOut.where(feature: name, user_id: user.id).any?
97
+ rollouts << rollout.name if rollout.match?(user)
98
+ end
97
99
  end
98
100
  rollouts.uniq
99
101
  end
@@ -1,3 +1,3 @@
1
1
  module ArRollout
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
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.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: