Skip to content

Instantly share code, notes, and snippets.

@mrb
Created November 1, 2010 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrb/657359 to your computer and use it in GitHub Desktop.
Save mrb/657359 to your computer and use it in GitHub Desktop.
class Engine
include Achievements::AchievementsEngine
achievement "one_time", :in => :context1, :threshold => 1
achievement "one_time", :in => :context2, :threshold => 1
achievement "three_times", :in => :context2, :threshold => 3
achievement "multiple_times", :in => :context3, :threshold => [1,5,10]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment