9 lines
263 B
Ruby
9 lines
263 B
Ruby
module FeatureFlag
|
|
class << self
|
|
delegate :disable, :enable, :enabled?, :exist?, to: Flipper
|
|
|
|
def accessible?(feature_flag_name, *args)
|
|
feature_flag_name.blank? || !exist?(feature_flag_name) || enabled?(feature_flag_name, *args)
|
|
end
|
|
end
|
|
end
|