Royce
Royce copied to clipboard
A Ruby on Rails roles solution.
My last application was on Rails 4 and I was using royce with no issues. I LOVE IT! I am starting a ew App on Rails 6 and was following...
https://github.com/MartinJNash/Royce/blob/aa8e5bc2573ff3166a2002f42e3b181b23b530fc/lib/royce/role.rb#L5
i18n
Hi there, is anyone knows how to set i18n translate for royce role?
If I have a subclass of User, say Admin, with royce_roles [:add, :edit, :delete, :crud], the following gives me empty collections: ``` rails @admin = Admin.first @admin.add_role :crud Admin.cruds #...