What we will use:
- CanCan - Authorization Gem for Ruby on Rails (https://github.com/ryanb/cancan)
- Response module (will be covered later)
Let's just start with an example
Let's suppose that you have a method do_something
, which could be preformed only by
user who's matching permissions view_payment_info
, if options[:some_key]
isn't