class ApplicationController < ActionController::Base
include SessionPersistence
- # check_authorization
protect_from_forgery :with => :exception
end
def current_ability
- Ability.new(current_user).merge(granted_capabily)
+ Ability.new(current_user).merge(granted_capability)
end
- def granted_capabily
+ def granted_capability
Capability.new(current_user, current_token)
end