ruby on rails merit gem setting level

146 Views Asked by At

Is there is a way to change the user level, something like

user.set_rank(:level => 4) ?

I need to change the user levels but redifining rank rules and running what is suggested here Can the merit gem recalculate reputation and re-evaluate badges and ranks? does not work.

¿any ideas?

1

There are 1 best solutions below

0
On BEST ANSWER

There is. You can do user.update_column :level, 4 and it does so.

Further discussion in https://github.com/tute/merit/issues/190.