module FlipFlop::ViewHelpers

Public Instance Methods

feature_enabled?(feature_name, actor=nil) click to toggle source

Check the if a feature should be enabled or not from a view

Example:

>> FlipFlop::get_instance.feature_enabled? :some_feature

Arguments:

feature_name (String/Symbol)

Returns:

boolean
# File lib/flip-flop/view_helpers.rb, line 14
def feature_enabled?(feature_name, actor=nil)
  ::FlipFlop::feature_enabled? feature_name, actor
end