简体   繁体   中英

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 :)

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM