Sha256: e6c67ab04ed0174087d7fae0d8c8ea63a57a4f9ade92feb1580ccf715678a634
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
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 def self.gate(name) gated_feature = GatedFeature.where(name: name).first_or_create if !gated_feature.gated? yield end end end require 'feature_gate/engine'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature_gate-0.0.5 | lib/feature_gate.rb |