module CookieFlag::Helper
Private Instance Methods
feature_available?(feature_name)
click to toggle source
# File lib/cookie_flag/helper.rb, line 24 def feature_available?(feature_name) feature_flags[feature_name].present? && cookies.has_key?(feature_name) && cookies[feature_name].to_s == feature_flags[feature_name].to_s end
feature_flags()
click to toggle source
# File lib/cookie_flag/helper.rb, line 30 def feature_flags @feature_flags ||= Rails.application.config_for(CookieFlag.config.name).with_indifferent_access end