Module: Granted::ForGranted::ClassMethods
- Defined in:
- lib/granted/modules/for_granted.rb
Instance Method Summary collapse
Instance Method Details
#grantable(*rights, grantees) ⇒ Object
23 24 25 26 27 |
# File 'lib/granted/modules/for_granted.rb', line 23 def grantable(*rights, grantees) [rights].flatten.each do |right| register_right(right, grantees[:to]) end end |