Sha256: f4efc9d1841c07eb1adc0fd7d96c8e940fc7481d7b051fa7ee2eefc3fd8104f6

Contents?: true

Size: 194 Bytes

Versions: 6

Compression:

Stored size: 194 Bytes

Contents

class GreenFlag::UserGroup < GreenFlag::VisitorGroup

  def includes_visitor?(visitor, rule=nil)
    user_exists = !!visitor.user
    user_exists && evaluator.call(visitor.user, rule)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
green_flag-0.4.0 app/models/green_flag/user_group.rb
green_flag-0.3.0 app/models/green_flag/user_group.rb
green_flag-0.2.0 app/models/green_flag/user_group.rb
green_flag-0.1.2 app/models/green_flag/user_group.rb
green_flag-0.1.1 app/models/green_flag/user_group.rb
green_flag-0.1.0 app/models/green_flag/user_group.rb