Sha256: beff31fa5a31efeb60c166671c75ac641e364d1194b73084da6db0d2dba3004b

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 Bytes

Contents

GreenFlag::VisitorGroup.define do

  # Basic Groups
  group "Everyone", "This is everyone!" do
    true
  end
  group "New visitors", "These are visitors who have never logged in.  (This does not include users who have signed out)" do |site_visitor|
    !site_visitor.user
  end
  group "Pre-existing Visitors", "Visitors that were created before this feature was deployed.  They might have seen the old version." do |visitor, rule|
    visitor.first_visited_at < rule.created_at
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
green_flag-0.4.0 spec/dummy/config/initializers/green_flag.rb
green_flag-0.3.0 spec/dummy/config/initializers/green_flag.rb
green_flag-0.2.0 spec/dummy/config/initializers/green_flag.rb