bullet_train-roles
bullet_train-roles copied to clipboard
The roles= setter should automatically save the record
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.