ministryofjustice/peoplefinder

View on GitHub
app/helpers/feature_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
module FeatureHelper
  def feature_disabled?(feature_name)
    Rails.configuration.try("disable_#{feature_name}") || false
  end

  def feature_enabled?(feature_name)
    !feature_disabled?(feature_name)
  end
end