Now, you just have to run the migration using rake command:
rake db:migrate
and you will be able to add the resourcify method inside all models you want scoped by a role.
Now, you just have to run the migration using rake command:
rake db:migrate
and you will be able to add the resourcify method inside all models you want scoped by a role.