* feat: add a feature flag for data update scripts * feat: write some tests for it * chore: oops * stub the data update scripts out wherever the profile admin is * chore: remove some unneeded ones * refactor: use call_original * feat: add a feature flag to all the Forems (but not enable it as yet)
9 lines
278 B
Ruby
9 lines
278 B
Ruby
module FeatureFlag
|
|
class << self
|
|
delegate :add, :disable, :enable, :enabled?, :exist?, :remove, to: Flipper
|
|
|
|
def accessible?(feature_flag_name, *args)
|
|
feature_flag_name.blank? || !exist?(feature_flag_name) || enabled?(feature_flag_name, *args)
|
|
end
|
|
end
|
|
end
|