Sha256: 904e4b37cc33c07eb2587f7ad4705f00407193f143c34bc2d1d02a85c65c0bbc
Contents?: true
Size: 660 Bytes
Versions: 8
Compression:
Stored size: 660 Bytes
Contents
=============================================================================== A Role class has been been created in app/models (with the name you gave as argument otherwise the default is role.rb), you can add your own business logic inside. Inside your User class (or the name you gave as argument otherwise the default is user.rb), roles method has been inserted to provide roles methods. Now, if 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. ===============================================================================
Version data entries
8 entries across 8 versions & 1 rubygems