Authentication - Who?
Authorization - Can?
(as a current_user)
create, blow!, etc.)require 'rails'ability.rb)current_ability in all required placesrestrict block)
#<Heimdallr::Proxy::Record: #<User id: 42, name: "42th User">>
restrict block each time)bang! methods
Rehearsal ----------------------------------------------------------
CanCan: 0.200000 0.010000 0.210000 ( 0.209705)
Heimdallr: 0.470000 0.000000 0.470000 ( 0.500858)
Heimdallr (insecure): 0.210000 0.000000 0.210000 ( 0.220875)
------------------------------------------------- total: 0.890000sec
user system total real
CanCan: 0.200000 0.010000 0.210000 ( 0.207055)
Heimdallr: 0.450000 0.000000 0.450000 ( 0.456898)
Heimdallr (insecure): 0.190000 0.000000 0.190000 ( 0.235545)
available_for(current_user))