ar_rollout 0.0.12 → 0.0.13

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.
@@ -51,6 +51,15 @@ module ArRollout
51
51
  end
52
52
  end
53
53
 
54
+ def self.all_active(user)
55
+ return false unless user
56
+ rollouts = []
57
+ Rollout.where("user_id = ? or user_id is NULL", user.id.to_i).any? do |rollout|
58
+ rollouts << rollout.name if rollout.match?(user)
59
+ end
60
+ rollouts
61
+ end
62
+
54
63
  def self.degrade_feature(name)
55
64
  yield
56
65
  rescue StandardError => e
@@ -1,3 +1,3 @@
1
1
  module ArRollout
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-09-19 00:00:00.000000000 Z
14
+ date: 2012-09-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails