DEV Community 👩‍💻👨‍💻

Discussion on: Basic Enum usage for defining roles or statuses on models in Rails

Collapse
xhostcom profile image
Paul Anthony McGowan • Edited on

Indeed, have used this procedure to set basic roles (user, member) in my Rails 7 Jumpstart themes (though admin is just a boolean flag, separate from these, in same Users table/model).

Is better way of setting roles, doing away with 3rd party gems like Rolify, which caused issues with turbo and network tab, stopping sign up of user etc.

Next up is Multi Tenancy for the theme, again similar problems occurred with 3rd party tenancy gems, so looking for a solution.

Contributions/help welcome on this issue, Multi Tenancy, code is at:

github.com/xhostcom/rails-7-saas-j... (Dark theme) and

github.com/xhostcom/rails-7-saas-j... (Light theme)

If anyone has ideas send PR?

Thanks