lib/rollout.rb in rollout-2.4.2 vs lib/rollout.rb in rollout-2.4.3
- old
+ new
@@ -201,9 +201,16 @@
with_feature(feature) do |f|
users.each{|user| f.remove_user(user)}
end
end
+ def set_users(feature, users)
+ with_feature(feature) do |f|
+ f.users = []
+ users.each{|user| f.add_user(user)}
+ end
+ end
+
def define_group(group, &block)
@groups[group.to_sym] = block
end
def active?(feature, user = nil)