0

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?

Community
  • 1
  • 1
Mentor
  • 3
  • 3

1 Answers1

0

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

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

TuteC
  • 4,342
  • 30
  • 40