bullet_train-roles icon indicating copy to clipboard operation
bullet_train-roles copied to clipboard

The roles= setter should automatically save the record

Open adampal opened this issue 2 years ago • 0 comments

When doing membership.roles = [Role.admin] we should automatically save the change to make it behave more like Rails' has_many :through association.

It will also make upgrading easier because existing Bullet Train apps that assign roles using the membership.roles = [Role.admin] syntax won't need to change any code when upgrading to the gem.

adampal avatar Feb 17 '22 11:02 adampal