Skip to content

remove_role_if_empty doesn't work within rails console #497

@danglduy

Description

@danglduy

Hi,

I am having a problem that config.remove_role_if_empty = false which is defined in initializer file does not work within rails console. I removed the last user having the role :admin and the role is also removed from the roles table.

I haven't check if remove from the web-based (rails server) yet.

Rails: 5.2.1
Rolify: 5.2.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions