-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathrollout_ui.rb
More file actions
34 lines (27 loc) · 761 Bytes
/
Copy pathrollout_ui.rb
File metadata and controls
34 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'redis'
require 'rollout'
require 'rollout_ui/monkey_patch'
if defined?(Rails) && Rails::VERSION::STRING.to_f >= 3.1
# Hack so that if the Engine is ever required, it's
# able to find it's assets, etc. TODO: find a better way
$:.unshift File.expand_path("rollout_ui/engine/lib", File.dirname(__FILE__))
end
module RolloutUi
autoload :Version, 'rollout_ui/version'
autoload :Wrapper, 'rollout_ui/wrapper'
autoload :Feature, 'rollout_ui/feature'
autoload :Server, 'rollout_ui/server'
def self.wrap(rollout)
@@rollout = rollout
end
def self.rollout
@@rollout
end
def self.track_features=(value)
@@track_features = value
end
def self.track_features
@@track_features
end
self.track_features = true
end