lib/feature_gate.rb in feature_gate-0.0.6 vs lib/feature_gate.rb in feature_gate-0.0.7
- old
+ new
@@ -22,17 +22,17 @@
if !gated_feature.gated?
yield
end
end
- def self.turn_on!(name)
+ def self.open!(name)
gated_feature = GatedFeature.find_by_name!(name)
- gated_feature.turn_on!
+ gated_feature.deploy_feature!
end
- def self.turn_off!(name)
+ def self.close!(name)
gated_feature = GatedFeature.find_by_name!(name)
- gated_feature.turn_on!
+ gated_feature.gate_feature!
end
end
require 'feature_gate/engine'