ar_rollout 0.0.18 → 0.0.19
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/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