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 +3 -1
- data/lib/ar_rollout/version.rb +1 -1
- metadata +1 -1
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
|
-
|
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
|
data/lib/ar_rollout/version.rb
CHANGED