Method: Rollout#feature_states

Defined in:
lib/rollout.rb

#feature_states(user = nil) ⇒ Object


167
168
169
170
171
# File 'lib/rollout.rb', line 167

def feature_states(user = nil)
  multi_get(*features).each_with_object({}) do |f, hash|
    hash[f.name] = f.active?(self, user)
  end
end