We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At present, whenever remove_role is called, it removes the entries from users_roles table too.
In order to provide soft delete, one can use: https://github.com/ActsAsParanoid/acts_as_paranoid
Did anyone use rolify with acts_as_paranoid or is it supported?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
It is not well supported. You will have to override the association added by rolify method.
rolify
class User < ApplicationRecord rolify has_and_belongs_to_many :roles, -> { where('users_roles.deleted_at is NULL') }, join_table: :users_roles end
No branches or pull requests
At present, whenever remove_role is called, it removes the entries from users_roles table too.
In order to provide soft delete, one can use:
https://github.com/ActsAsParanoid/acts_as_paranoid
Did anyone use rolify with acts_as_paranoid or is it supported?
The text was updated successfully, but these errors were encountered: