varvet / pundit

Minimal authorization through OO design and pure Ruby classes
MIT License
8.29k stars 632 forks source link

Pundit 3: Pass request format to authorize #581

Closed helmutrs closed 5 years ago

helmutrs commented 5 years ago

Besides passing user and record, we should be able to send the request format. For example, we working with an application that provides web application for one set of users and an api to be consumed for a different type of user. Each of them having their own set of rules.