lib/feature_gate.rb in feature_gate-0.0.2 vs lib/feature_gate.rb in feature_gate-0.0.3
- old
+ new
@@ -1,7 +1,14 @@
-class FeatureGate
- def self.gate
- if true
- yield
- end
+require 'active_support/dependencies'
+
+module FeatureGate
+ # Our host application root path
+ # We set this when the engine is initialized
+ mattr_accessor :app_root
+
+ # Yield self on setup for nice config blocks
+ def self.setup
+ yield self
end
end
+
+require 'feature_gate/engine'