MartinJNash / Royce

A Ruby on Rails roles solution.
MIT License
210 stars 14 forks source link

Feature request: use bang method to add role #7

Closed DanielKehoe closed 10 years ago

DanielKehoe commented 10 years ago

Using ActiveRecord Enum to manage roles, I can set a role like this:

user = User.create()
user.admin!

Would you consider adding a similar method (using a "bang") to Royce, as an alias for add_role? Is it possible?

MartinJNash commented 10 years ago

Added in commit ee8ca8e. Thanks for the suggestion. This is a great idea!