ar_rollout 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -118,7 +118,7 @@ List known features with:
118
118
  - Merge ArRollout and Rollout class methods
119
119
  - Autodetection of new features from code, before rollout begins
120
120
 
121
- ## Version 0.0.18 - 04 Dec 2012
121
+ ## Version 0.0.20 - 04 Dec 2012
122
122
  - Add Group, Membership, OptOut
123
123
 
124
124
  ## Version 0.0.17 - 29 Nov 2012
data/lib/ar_rollout.rb CHANGED
@@ -93,7 +93,7 @@ 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
- unless OptOut.where(feature: name, user_id: user.id).any?
96
+ unless OptOut.where(feature: rollout.name, user_id: user.id).any?
97
97
  rollouts << rollout.name if rollout.match?(user)
98
98
  end
99
99
  end
@@ -1,3 +1,3 @@
1
1
  module ArRollout
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
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.19
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: