Sha256: c34e14e25a2f3ca6ccab9c423c847b504b6f1d947d00593d2b856cbd3d96ad00

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

module Peoplefinder
  module FeatureHelper
    def feature_disabled?(feature_name)
      Rails.configuration.try('disable_' + feature_name.to_s) || false
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peoplefinder-0.1.1 app/helpers/peoplefinder/feature_helper.rb
peoplefinder-0.1.0 app/helpers/peoplefinder/feature_helper.rb