Skip to content

Instantly share code, notes, and snippets.

@quirkey
Forked from mrb/nicer.rb
Created November 1, 2010 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quirkey/657360 to your computer and use it in GitHub Desktop.
Save quirkey/657360 to your computer and use it in GitHub Desktop.
class Engine
include Achievements::AchievementsEngine
achievements do
:context1 do
achieve {:name => :one_time, :threshold => 1}
end
:context2 do
achieve {:name => :one_time, :threshold => 1}
achieve {:name => :three_times, :threshold => 3}
end
:context3 do
achieve {:name => :multiple_levels, :threshold => [1,5,10]}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment