davydovanton / kan

Simple, functional authorization library and role management for ruby
http://www.kanrb.org
MIT License
232 stars 12 forks source link

Add implicit ability call #46

Closed renius closed 4 years ago

renius commented 4 years ago

I don't want to write code :) I just want to pass variables to ability one time for one application like:

ability[resource_class, action_name].call(current_user, resource)

Best