debugpai
debugpai

Reputation: 31

Merit gem experience level

I want to know how I can use the points given by merit in rails as experience generated by a user and when the experience reaches a certain level, the user will level up. I just want to know where exactly the points of the user is stored so that I can edit it accordingly as there is not a very clear documentation on merit. Thanks :)

Upvotes: 1

Views: 702

Answers (2)

TuteC
TuteC

Reputation: 4382

Merit is designed so that badges, ranking and points are orthogonal between each other, so point granting wouldn't be directly coupled to ranking or certain badges.

Nevertheless, you can find the syntax for solving that problem in: https://github.com/tute/merit/issues/64#issuecomment-14958635

Upvotes: 1

Benjamin
Benjamin

Reputation: 749

Merit uses Ambry. This stores to either YAML or a dump file. By default, ambry stores data to db/ambry.yml, so take a look here.

Upvotes: 0

Related Questions