I'm building a website where people can buy & watch video online. Paid users will see video, others will see only description & buy now button.
There is an "Order" model, with "LineItems" pointing to videos.
I am using "Video" resource, devise authentication along with CanCan. Those who buy videos have "Customer" role.
When user completes payment, the status of order changes to completed. So I need a method to check if the current user has purchased the video, and display it. While this can be done in Controller, is there a way to do it in CanCan?